react-bootstrap 0.33.0 → 1.0.0-beta.10
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/AbstractNav.js +175 -0
- package/AbstractNavItem.js +71 -0
- package/Accordion.d.ts +19 -0
- package/Accordion.js +57 -0
- package/AccordionCollapse.d.ts +18 -0
- package/AccordionCollapse.js +33 -0
- package/AccordionContext.js +13 -0
- package/AccordionToggle.d.ts +14 -0
- package/AccordionToggle.js +32 -0
- package/Alert.d.ts +38 -0
- package/Alert.js +89 -0
- package/Badge.d.ts +19 -0
- package/Badge.js +40 -0
- package/Breadcrumb.d.ts +18 -0
- package/Breadcrumb.js +49 -0
- package/BreadcrumbItem.d.ts +16 -0
- package/BreadcrumbItem.js +59 -0
- package/Button.d.ts +36 -0
- package/Button.js +60 -0
- package/ButtonGroup.d.ts +16 -0
- package/ButtonGroup.js +46 -0
- package/ButtonToolbar.d.ts +14 -0
- package/ButtonToolbar.js +37 -0
- package/Card.d.ts +86 -0
- package/Card.js +82 -0
- package/CardColumns.d.ts +9 -0
- package/CardColumns.js +13 -0
- package/CardContext.js +13 -0
- package/CardDeck.d.ts +9 -0
- package/CardDeck.js +13 -0
- package/CardGroup.d.ts +9 -0
- package/CardGroup.js +13 -0
- package/CardImg.d.ts +13 -0
- package/CardImg.js +41 -0
- package/Carousel.d.ts +34 -0
- package/Carousel.js +439 -0
- package/CarouselCaption.d.ts +9 -0
- package/CarouselCaption.js +15 -0
- package/CarouselItem.d.ts +7 -0
- package/CarouselItem.js +13 -0
- package/CloseButton.d.ts +12 -0
- package/CloseButton.js +48 -0
- package/Col.d.ts +37 -0
- package/Col.js +63 -0
- package/Collapse.d.ts +21 -0
- package/{lib/Collapse.js → Collapse.js} +23 -109
- package/Container.d.ts +13 -0
- package/Container.js +42 -0
- package/Dropdown.d.ts +39 -0
- package/Dropdown.js +109 -0
- package/DropdownButton.d.ts +27 -0
- package/DropdownButton.js +97 -0
- package/DropdownItem.d.ts +20 -0
- package/DropdownItem.js +75 -0
- package/DropdownMenu.d.ts +18 -0
- package/DropdownMenu.js +97 -0
- package/DropdownToggle.d.ts +18 -0
- package/DropdownToggle.js +86 -0
- package/Fade.d.ts +15 -0
- package/Fade.js +83 -0
- package/Feedback.d.ts +14 -0
- package/Feedback.js +49 -0
- package/Figure.d.ts +15 -0
- package/Figure.js +21 -0
- package/FigureCaption.d.ts +9 -0
- package/FigureCaption.js +15 -0
- package/FigureImage.d.ts +9 -0
- package/FigureImage.js +65 -0
- package/Form.d.ts +32 -0
- package/Form.js +59 -0
- package/FormCheck.d.ts +29 -0
- package/FormCheck.js +93 -0
- package/FormCheckInput.d.ts +19 -0
- package/FormCheckInput.js +51 -0
- package/FormCheckLabel.d.ts +15 -0
- package/FormCheckLabel.js +48 -0
- package/FormContext.js +16 -0
- package/FormControl.d.ts +27 -0
- package/FormControl.js +74 -0
- package/FormGroup.d.ts +14 -0
- package/FormGroup.js +47 -0
- package/FormLabel.d.ts +24 -0
- package/FormLabel.js +64 -0
- package/FormText.d.ts +14 -0
- package/FormText.js +36 -0
- package/Image.d.ts +14 -0
- package/Image.js +59 -0
- package/InputGroup.d.ts +34 -0
- package/InputGroup.js +83 -0
- package/Jumbotron.d.ts +13 -0
- package/{lib/Jumbotron.js → Jumbotron.js} +16 -22
- package/ListGroup.d.ts +20 -0
- package/ListGroup.js +63 -0
- package/ListGroupItem.d.ts +24 -0
- package/ListGroupItem.js +89 -0
- package/Media.d.ts +15 -0
- package/Media.js +38 -0
- package/Modal.d.ts +44 -0
- package/Modal.js +276 -0
- package/ModalBody.d.ts +9 -0
- package/ModalBody.js +13 -0
- package/ModalContext.js +16 -0
- package/ModalDialog.d.ts +13 -0
- package/ModalDialog.js +39 -0
- package/ModalFooter.d.ts +9 -0
- package/ModalFooter.js +13 -0
- package/ModalHeader.d.ts +15 -0
- package/ModalHeader.js +59 -0
- package/ModalTitle.d.ts +9 -0
- package/ModalTitle.js +19 -0
- package/Nav.d.ts +30 -0
- package/Nav.js +83 -0
- package/NavContext.js +14 -0
- package/NavDropdown.d.ts +25 -0
- package/NavDropdown.js +67 -0
- package/NavItem.d.ts +13 -0
- package/NavItem.js +36 -0
- package/NavLink.d.ts +20 -0
- package/NavLink.js +52 -0
- package/Navbar.d.ts +35 -0
- package/Navbar.js +147 -0
- package/NavbarBrand.d.ts +13 -0
- package/NavbarBrand.js +34 -0
- package/NavbarCollapse.d.ts +16 -0
- package/NavbarCollapse.js +38 -0
- package/NavbarContext.js +13 -0
- package/NavbarToggle.d.ts +13 -0
- package/NavbarToggle.js +66 -0
- package/Overlay.d.ts +37 -0
- package/Overlay.js +70 -0
- package/OverlayTrigger.d.ts +21 -0
- package/OverlayTrigger.js +249 -0
- package/PageItem.d.ts +24 -0
- package/{lib/PaginationItem.js → PageItem.js} +19 -34
- package/Pagination.d.ts +20 -0
- package/Pagination.js +67 -0
- package/Popover.d.ts +16 -0
- package/Popover.js +57 -0
- package/PopoverContent.js +35 -0
- package/PopoverTitle.js +35 -0
- package/ProgressBar.d.ts +18 -0
- package/{lib/ProgressBar.js → ProgressBar.js} +29 -58
- package/README.md +30 -22
- package/ResponsiveEmbed.d.ts +15 -0
- package/ResponsiveEmbed.js +60 -0
- package/Row.d.ts +14 -0
- package/Row.js +40 -0
- package/SafeAnchor.d.ts +18 -0
- package/{lib/SafeAnchor.js → SafeAnchor.js} +14 -36
- package/SelectableContext.js +19 -0
- package/Spinner.d.ts +25 -0
- package/Spinner.js +54 -0
- package/SplitButton.d.ts +31 -0
- package/SplitButton.js +84 -0
- package/Tab.d.ts +25 -0
- package/Tab.js +42 -0
- package/TabContainer.d.ts +18 -0
- package/TabContainer.js +96 -0
- package/TabContent.d.ts +9 -0
- package/TabContent.js +50 -0
- package/TabContext.js +14 -0
- package/TabPane.d.ts +18 -0
- package/TabPane.js +99 -0
- package/Table.d.ts +17 -0
- package/Table.js +70 -0
- package/Tabs.d.ts +22 -0
- package/Tabs.js +121 -0
- package/ThemeProvider.d.ts +9 -0
- package/ThemeProvider.js +82 -0
- package/Toast.d.ts +25 -0
- package/Toast.js +92 -0
- package/ToastBody.d.ts +9 -0
- package/ToastBody.js +13 -0
- package/ToastContext.js +16 -0
- package/ToastHeader.d.ts +14 -0
- package/ToastHeader.js +59 -0
- package/ToggleButton.d.ts +22 -0
- package/ToggleButton.js +100 -0
- package/ToggleButtonGroup.d.ts +31 -0
- package/{lib/ToggleButtonGroup.js → ToggleButtonGroup.js} +15 -52
- package/Tooltip.d.ts +15 -0
- package/Tooltip.js +53 -0
- package/dist/react-bootstrap.js +13109 -13085
- package/dist/react-bootstrap.min.js +28 -3
- package/es/AbstractNav.js +155 -0
- package/es/AbstractNavItem.js +52 -0
- package/es/Accordion.d.ts +19 -0
- package/es/Accordion.js +34 -23
- package/es/AccordionCollapse.d.ts +18 -0
- package/es/AccordionCollapse.js +17 -0
- package/es/AccordionContext.js +2 -0
- package/es/AccordionToggle.d.ts +14 -0
- package/es/AccordionToggle.js +19 -0
- package/es/Alert.d.ts +38 -0
- package/es/Alert.js +56 -54
- package/es/Badge.d.ts +19 -0
- package/es/Badge.js +20 -63
- package/es/Breadcrumb.d.ts +18 -0
- package/es/Breadcrumb.js +29 -37
- package/es/BreadcrumbItem.d.ts +16 -0
- package/es/BreadcrumbItem.js +36 -62
- package/es/Button.d.ts +36 -0
- package/es/Button.js +35 -82
- package/es/ButtonGroup.d.ts +16 -0
- package/es/ButtonGroup.js +26 -62
- package/es/ButtonToolbar.d.ts +14 -0
- package/es/ButtonToolbar.js +20 -36
- package/es/Card.d.ts +86 -0
- package/es/Card.js +61 -0
- package/es/CardColumns.d.ts +9 -0
- package/es/CardColumns.js +2 -0
- package/es/CardContext.js +2 -0
- package/es/CardDeck.d.ts +9 -0
- package/es/CardDeck.js +2 -0
- package/es/CardGroup.d.ts +9 -0
- package/es/CardGroup.js +2 -0
- package/es/CardImg.d.ts +13 -0
- package/es/CardImg.js +26 -0
- package/es/Carousel.d.ts +34 -0
- package/es/Carousel.js +299 -272
- package/es/CarouselCaption.d.ts +9 -0
- package/es/CarouselCaption.js +4 -47
- package/es/CarouselItem.d.ts +7 -0
- package/es/CarouselItem.js +2 -127
- package/es/CloseButton.d.ts +12 -0
- package/es/CloseButton.js +20 -30
- package/es/Col.d.ts +37 -0
- package/es/Col.js +44 -249
- package/es/Collapse.d.ts +21 -0
- package/es/Collapse.js +20 -105
- package/es/Container.d.ts +13 -0
- package/es/Container.js +27 -0
- package/es/Dropdown.d.ts +39 -0
- package/es/Dropdown.js +71 -350
- package/es/DropdownButton.d.ts +27 -0
- package/es/DropdownButton.js +71 -47
- package/es/DropdownItem.d.ts +20 -0
- package/es/DropdownItem.js +54 -0
- package/es/DropdownMenu.d.ts +18 -0
- package/es/DropdownMenu.js +67 -148
- package/es/DropdownToggle.d.ts +18 -0
- package/es/DropdownToggle.js +40 -38
- package/es/Fade.d.ts +15 -0
- package/es/Fade.js +25 -67
- package/es/Feedback.d.ts +14 -0
- package/es/Feedback.js +34 -0
- package/es/Figure.d.ts +15 -0
- package/es/Figure.js +9 -0
- package/es/FigureCaption.d.ts +9 -0
- package/es/FigureCaption.js +5 -0
- package/es/FigureImage.d.ts +9 -0
- package/es/FigureImage.js +49 -0
- package/es/Form.d.ts +32 -0
- package/es/Form.js +33 -58
- package/es/FormCheck.d.ts +29 -0
- package/es/FormCheck.js +70 -0
- package/es/FormCheckInput.d.ts +19 -0
- package/es/FormCheckInput.js +33 -0
- package/es/FormCheckLabel.d.ts +15 -0
- package/es/FormCheckLabel.js +30 -0
- package/es/FormContext.js +5 -0
- package/es/FormControl.d.ts +27 -0
- package/es/FormControl.js +50 -100
- package/es/FormGroup.d.ts +14 -0
- package/es/FormGroup.js +27 -78
- package/es/FormLabel.d.ts +24 -0
- package/es/FormLabel.js +43 -0
- package/es/FormText.d.ts +14 -0
- package/es/FormText.js +22 -0
- package/es/Image.d.ts +14 -0
- package/es/Image.js +18 -47
- package/es/InputGroup.d.ts +34 -0
- package/es/InputGroup.js +45 -18
- package/es/Jumbotron.d.ts +13 -0
- package/es/Jumbotron.js +15 -19
- package/es/ListGroup.d.ts +20 -0
- package/es/ListGroup.js +25 -53
- package/es/ListGroupItem.d.ts +24 -0
- package/es/ListGroupItem.js +49 -71
- package/es/Media.d.ts +15 -0
- package/es/Media.js +21 -57
- package/es/Modal.d.ts +44 -0
- package/es/Modal.js +187 -217
- package/es/ModalBody.d.ts +9 -0
- package/es/ModalBody.js +2 -47
- package/es/ModalContext.js +5 -0
- package/es/ModalDialog.d.ts +13 -0
- package/es/ModalDialog.js +23 -64
- package/es/ModalFooter.d.ts +9 -0
- package/es/ModalFooter.js +2 -47
- package/es/ModalHeader.d.ts +15 -0
- package/es/ModalHeader.js +33 -76
- package/es/ModalTitle.d.ts +9 -0
- package/es/ModalTitle.js +6 -47
- package/es/Nav.d.ts +30 -0
- package/es/Nav.js +50 -327
- package/es/NavContext.js +3 -0
- package/es/NavDropdown.d.ts +25 -0
- package/es/NavDropdown.js +29 -73
- package/es/NavItem.d.ts +13 -0
- package/es/NavItem.js +19 -88
- package/es/NavLink.d.ts +20 -0
- package/es/NavLink.js +35 -0
- package/es/Navbar.d.ts +35 -0
- package/es/Navbar.js +85 -223
- package/es/NavbarBrand.d.ts +13 -0
- package/es/NavbarBrand.js +17 -48
- package/es/NavbarCollapse.d.ts +16 -0
- package/es/NavbarCollapse.js +16 -39
- package/es/NavbarContext.js +2 -0
- package/es/NavbarToggle.d.ts +13 -0
- package/es/NavbarToggle.js +42 -69
- package/es/Overlay.d.ts +37 -0
- package/es/Overlay.js +46 -104
- package/es/OverlayTrigger.d.ts +21 -0
- package/es/OverlayTrigger.js +143 -226
- package/es/PageItem.d.ts +24 -0
- package/es/PageItem.js +78 -3
- package/es/Pagination.d.ts +20 -0
- package/es/Pagination.js +26 -21
- package/es/Popover.d.ts +16 -0
- package/es/Popover.js +32 -103
- package/es/PopoverContent.js +21 -0
- package/es/PopoverTitle.js +21 -0
- package/es/ProgressBar.d.ts +18 -0
- package/es/ProgressBar.js +25 -49
- package/es/ResponsiveEmbed.d.ts +15 -0
- package/es/ResponsiveEmbed.js +17 -48
- package/es/Row.d.ts +14 -0
- package/es/Row.js +20 -42
- package/es/SafeAnchor.d.ts +18 -0
- package/es/SafeAnchor.js +13 -32
- package/es/SelectableContext.js +7 -0
- package/es/Spinner.d.ts +25 -0
- package/es/Spinner.js +40 -0
- package/es/SplitButton.d.ts +31 -0
- package/es/SplitButton.js +42 -50
- package/es/Tab.d.ts +25 -0
- package/es/Tab.js +3 -21
- package/es/TabContainer.d.ts +18 -0
- package/es/TabContainer.js +52 -93
- package/es/TabContent.d.ts +9 -0
- package/es/TabContent.js +17 -160
- package/es/TabContext.js +3 -0
- package/es/TabPane.d.ts +18 -0
- package/es/TabPane.js +76 -266
- package/es/Table.d.ts +17 -0
- package/es/Table.js +21 -36
- package/es/Tabs.d.ts +22 -0
- package/es/Tabs.js +23 -70
- package/es/ThemeProvider.d.ts +9 -0
- package/es/ThemeProvider.js +66 -0
- package/es/Toast.d.ts +25 -0
- package/es/Toast.js +71 -0
- package/es/ToastBody.d.ts +9 -0
- package/es/ToastBody.js +2 -0
- package/es/ToastContext.js +5 -0
- package/es/ToastHeader.d.ts +14 -0
- package/es/ToastHeader.js +41 -0
- package/es/ToggleButton.d.ts +22 -0
- package/es/ToggleButton.js +49 -44
- package/es/ToggleButtonGroup.d.ts +31 -0
- package/es/ToggleButtonGroup.js +14 -50
- package/es/Tooltip.d.ts +15 -0
- package/es/Tooltip.js +28 -94
- package/es/helpers.d.ts +33 -0
- package/es/index.d.ts +93 -0
- package/es/index.js +38 -34
- package/es/useAccordionToggle.js +16 -0
- package/es/utils/BootstrapModalManager.js +83 -0
- package/es/utils/ElementChildren.js +32 -0
- package/es/utils/createChainedFunction.js +1 -4
- package/es/utils/createWithBsPrefix.js +37 -0
- package/es/utils/divWithClassName.js +11 -0
- package/es/utils/triggerBrowserReflow.js +5 -0
- package/helpers.d.ts +33 -0
- package/index.d.ts +93 -0
- package/{lib/index.js → index.js} +63 -58
- package/package.json +27 -101
- package/useAccordionToggle.js +29 -0
- package/utils/BootstrapModalManager.js +96 -0
- package/utils/ElementChildren.js +39 -0
- package/{lib/utils → utils}/createChainedFunction.js +1 -4
- package/utils/createWithBsPrefix.js +51 -0
- package/utils/divWithClassName.js +24 -0
- package/utils/triggerBrowserReflow.js +12 -0
- package/CHANGELOG.md +0 -1056
- package/es/Checkbox.js +0 -105
- package/es/Clearfix.js +0 -95
- package/es/ControlLabel.js +0 -67
- package/es/FormControlFeedback.js +0 -83
- package/es/FormControlStatic.js +0 -47
- package/es/Glyphicon.js +0 -49
- package/es/Grid.js +0 -60
- package/es/HelpBlock.js +0 -37
- package/es/InputGroupAddon.js +0 -37
- package/es/InputGroupButton.js +0 -37
- package/es/Label.js +0 -58
- package/es/MediaBody.js +0 -60
- package/es/MediaHeading.js +0 -47
- package/es/MediaLeft.js +0 -53
- package/es/MediaList.js +0 -37
- package/es/MediaListItem.js +0 -37
- package/es/MediaRight.js +0 -53
- package/es/MenuItem.js +0 -155
- package/es/NavbarHeader.js +0 -43
- package/es/PageHeader.js +0 -38
- package/es/Pager.js +0 -52
- package/es/PagerItem.js +0 -85
- package/es/PaginationItem.js +0 -92
- package/es/Panel.js +0 -163
- package/es/PanelBody.js +0 -73
- package/es/PanelCollapse.js +0 -91
- package/es/PanelFooter.js +0 -46
- package/es/PanelGroup.js +0 -151
- package/es/PanelHeading.js +0 -66
- package/es/PanelTitle.js +0 -71
- package/es/PanelToggle.js +0 -91
- package/es/Radio.js +0 -105
- package/es/SplitToggle.js +0 -28
- package/es/Thumbnail.js +0 -81
- package/es/Well.js +0 -38
- package/es/utils/PropTypes.js +0 -75
- package/es/utils/StyleConfig.js +0 -28
- package/es/utils/ValidComponentChildren.js +0 -174
- package/es/utils/bootstrapUtils.js +0 -181
- package/es/utils/capitalize.js +0 -3
- package/es/utils/deprecationWarning.js +0 -65
- package/es/utils/index.js +0 -6
- package/es/utils/splitComponentProps.js +0 -19
- package/lib/Accordion.js +0 -38
- package/lib/Alert.js +0 -81
- package/lib/Badge.js +0 -87
- package/lib/Breadcrumb.js +0 -58
- package/lib/BreadcrumbItem.js +0 -86
- package/lib/Button.js +0 -111
- package/lib/ButtonGroup.js +0 -86
- package/lib/ButtonToolbar.js +0 -53
- package/lib/Carousel.js +0 -417
- package/lib/CarouselCaption.js +0 -65
- package/lib/CarouselItem.js +0 -144
- package/lib/Checkbox.js +0 -123
- package/lib/Clearfix.js +0 -118
- package/lib/CloseButton.js +0 -55
- package/lib/Col.js +0 -275
- package/lib/ControlLabel.js +0 -83
- package/lib/Dropdown.js +0 -395
- package/lib/DropdownButton.js +0 -74
- package/lib/DropdownMenu.js +0 -183
- package/lib/DropdownToggle.js +0 -83
- package/lib/Fade.js +0 -124
- package/lib/Form.js +0 -82
- package/lib/FormControl.js +0 -126
- package/lib/FormControlFeedback.js +0 -103
- package/lib/FormControlStatic.js +0 -65
- package/lib/FormGroup.js +0 -101
- package/lib/Glyphicon.js +0 -66
- package/lib/Grid.js +0 -79
- package/lib/HelpBlock.js +0 -52
- package/lib/Image.js +0 -91
- package/lib/InputGroup.js +0 -61
- package/lib/InputGroupAddon.js +0 -52
- package/lib/InputGroupButton.js +0 -52
- package/lib/Label.js +0 -76
- package/lib/ListGroup.js +0 -99
- package/lib/ListGroupItem.js +0 -115
- package/lib/Media.js +0 -83
- package/lib/MediaBody.js +0 -80
- package/lib/MediaHeading.js +0 -65
- package/lib/MediaLeft.js +0 -72
- package/lib/MediaList.js +0 -52
- package/lib/MediaListItem.js +0 -52
- package/lib/MediaRight.js +0 -72
- package/lib/MenuItem.js +0 -177
- package/lib/Modal.js +0 -315
- package/lib/ModalBody.js +0 -65
- package/lib/ModalDialog.js +0 -82
- package/lib/ModalFooter.js +0 -65
- package/lib/ModalHeader.js +0 -101
- package/lib/ModalTitle.js +0 -65
- package/lib/Nav.js +0 -365
- package/lib/NavDropdown.js +0 -113
- package/lib/NavItem.js +0 -108
- package/lib/Navbar.js +0 -289
- package/lib/NavbarBrand.js +0 -66
- package/lib/NavbarCollapse.js +0 -61
- package/lib/NavbarHeader.js +0 -58
- package/lib/NavbarToggle.js +0 -89
- package/lib/Overlay.js +0 -131
- package/lib/OverlayTrigger.js +0 -336
- package/lib/PageHeader.js +0 -53
- package/lib/PageItem.js +0 -15
- package/lib/Pager.js +0 -75
- package/lib/PagerItem.js +0 -102
- package/lib/Pagination.js +0 -63
- package/lib/Panel.js +0 -187
- package/lib/PanelBody.js +0 -92
- package/lib/PanelCollapse.js +0 -108
- package/lib/PanelFooter.js +0 -63
- package/lib/PanelGroup.js +0 -174
- package/lib/PanelHeading.js +0 -85
- package/lib/PanelTitle.js +0 -91
- package/lib/PanelToggle.js +0 -109
- package/lib/Popover.js +0 -129
- package/lib/Radio.js +0 -123
- package/lib/ResponsiveEmbed.js +0 -92
- package/lib/Row.js +0 -65
- package/lib/SplitButton.js +0 -95
- package/lib/SplitToggle.js +0 -40
- package/lib/Tab.js +0 -61
- package/lib/TabContainer.js +0 -139
- package/lib/TabContent.js +0 -199
- package/lib/TabPane.js +0 -292
- package/lib/Table.js +0 -88
- package/lib/Tabs.js +0 -172
- package/lib/Thumbnail.js +0 -99
- package/lib/ToggleButton.js +0 -95
- package/lib/Tooltip.js +0 -120
- package/lib/Well.js +0 -54
- package/lib/utils/PropTypes.js +0 -90
- package/lib/utils/StyleConfig.js +0 -37
- package/lib/utils/ValidComponentChildren.js +0 -197
- package/lib/utils/bootstrapUtils.js +0 -206
- package/lib/utils/capitalize.js +0 -10
- package/lib/utils/deprecationWarning.js +0 -77
- package/lib/utils/index.js +0 -20
- package/lib/utils/splitComponentProps.js +0 -27
package/index.d.ts
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// These type definitions were originally from DefinitelyTyped
|
|
2
|
+
// They have since been incorporated into this project directly
|
|
3
|
+
//
|
|
4
|
+
// Project: https://github.com/react-bootstrap/react-bootstrap
|
|
5
|
+
// Adapted from v0.32 Definitions by: Richard Davies <https://github.com/rathga>
|
|
6
|
+
// [....others....]
|
|
7
|
+
// v0.32 Definitions by: Walker Burgin <https://github.com/walkerburgin>,
|
|
8
|
+
// Vincent Siao <https://github.com/vsiao>,
|
|
9
|
+
// Danilo Barros <https://github.com/danilojrr>,
|
|
10
|
+
// Batbold Gansukh <https://github.com/Batbold-Gansukh>,
|
|
11
|
+
// Raymond May Jr. <https://github.com/octatone>,
|
|
12
|
+
// Cheng Sieu Ly <https://github.com/chengsieuly>,
|
|
13
|
+
// Mercedes Retolaza <https://github.com/mretolaza>,
|
|
14
|
+
// Kat Busch <https://github.com/katbusch>,
|
|
15
|
+
// Vito Samson <https://github.com/vitosamson>,
|
|
16
|
+
// Karol Janyst <https://github.com/LKay>
|
|
17
|
+
// Aaron Beall <https://github.com/aaronbeall>
|
|
18
|
+
// Johann Rakotoharisoa <https://github.com/jrakotoharisoa>
|
|
19
|
+
// Andrew Makarov <https://github.com/r3nya>
|
|
20
|
+
// Duong Tran <https://github.com/t49tran>
|
|
21
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
22
|
+
// TypeScript Version: 3.0
|
|
23
|
+
|
|
24
|
+
export { default as Accordion, AccordionProps } from './Accordion';
|
|
25
|
+
export { default as AccordionCollapse, AccordionCollapseProps } from './AccordionCollapse';
|
|
26
|
+
export { default as AccordionToggle, AccordionToggleProps } from './AccordionToggle';
|
|
27
|
+
export { default as Alert, AlertProps } from './Alert';
|
|
28
|
+
export { default as Badge, BadgeProps } from './Badge';
|
|
29
|
+
export { default as Breadcrumb, BreadcrumbProps } from './Breadcrumb';
|
|
30
|
+
export { default as BreadcrumbItem, BreadcrumbItemProps } from './BreadcrumbItem';
|
|
31
|
+
export { default as Button, ButtonProps } from './Button';
|
|
32
|
+
export { default as ButtonGroup, ButtonGroupProps } from './ButtonGroup';
|
|
33
|
+
export { default as ButtonToolbar, ButtonToolbarProps } from './ButtonToolbar';
|
|
34
|
+
export { default as Card, CardProps } from './Card';
|
|
35
|
+
export { default as CardColumns } from './CardColumns';
|
|
36
|
+
export { default as CardDeck } from './CardDeck';
|
|
37
|
+
export { default as CardImg, CardImgProps } from './CardImg';
|
|
38
|
+
export { default as CardGroup } from './CardGroup';
|
|
39
|
+
export { default as Carousel, CarouselProps } from './Carousel';
|
|
40
|
+
export { default as CarouselItem } from './CarouselItem';
|
|
41
|
+
export { default as CloseButton, CloseButtonProps } from './CloseButton';
|
|
42
|
+
export { default as Col, ColProps } from './Col';
|
|
43
|
+
export { default as Collapse, CollapseProps } from './Collapse';
|
|
44
|
+
export { default as Dropdown, DropdownProps } from './Dropdown';
|
|
45
|
+
export { default as DropdownButton, DropdownButtonProps } from './DropdownButton';
|
|
46
|
+
export { default as Fade, FadeProps } from './Fade';
|
|
47
|
+
|
|
48
|
+
export { default as Form, FormProps } from './Form';
|
|
49
|
+
export { default as FormControl, FormControlProps } from './FormControl';
|
|
50
|
+
export { default as FormCheck, FormCheckProps } from './FormCheck';
|
|
51
|
+
export { default as FormGroup, FormGroupProps } from './FormGroup';
|
|
52
|
+
export { default as FormLabel, FormLabelProps } from './FormLabel';
|
|
53
|
+
export { default as FormText, FormTextProps } from './FormText';
|
|
54
|
+
|
|
55
|
+
export { default as Container, ContainerProps } from './Container';
|
|
56
|
+
export { default as Image, ImageProps } from './Image';
|
|
57
|
+
export { default as Figure } from './Figure';
|
|
58
|
+
export { default as InputGroup, InputGroupProps } from './InputGroup';
|
|
59
|
+
export { default as Jumbotron, JumbotronProps } from './Jumbotron';
|
|
60
|
+
export { default as ListGroup, ListGroupProps } from './ListGroup';
|
|
61
|
+
export { default as ListGroupItem, ListGroupItemProps } from './ListGroupItem';
|
|
62
|
+
export { default as Media } from './Media';
|
|
63
|
+
export { default as Modal, ModalProps } from './Modal';
|
|
64
|
+
export { default as ModalBody } from './ModalBody';
|
|
65
|
+
export { default as ModalDialog, ModalDialogProps } from './ModalDialog';
|
|
66
|
+
export { default as ModalFooter } from './ModalFooter';
|
|
67
|
+
export { default as ModalTitle } from './ModalTitle';
|
|
68
|
+
export { default as Nav, NavProps } from './Nav';
|
|
69
|
+
export { default as Navbar, NavbarProps } from './Navbar';
|
|
70
|
+
export { default as NavbarBrand, NavbarBrandProps } from './NavbarBrand';
|
|
71
|
+
export { default as NavDropdown, NavDropdownProps } from './NavDropdown';
|
|
72
|
+
export { default as NavItem, NavItemProps } from './NavItem';
|
|
73
|
+
export { default as Overlay, OverlayProps } from './Overlay';
|
|
74
|
+
export { default as OverlayTrigger, OverlayTriggerProps } from './OverlayTrigger';
|
|
75
|
+
export { default as PageItem, PageItemProps } from './PageItem';
|
|
76
|
+
export { default as Pagination, PaginationProps } from './Pagination';
|
|
77
|
+
export { default as Popover, PopoverProps } from './Popover';
|
|
78
|
+
export { default as ProgressBar, ProgressBarProps } from './ProgressBar';
|
|
79
|
+
export { default as ResponsiveEmbed, ResponsiveEmbedProps } from './ResponsiveEmbed';
|
|
80
|
+
export { default as Row, RowProps } from './Row';
|
|
81
|
+
export { default as SafeAnchor, SafeAnchorProps } from './SafeAnchor';
|
|
82
|
+
export { default as Spinner, SpinnerProps } from './Spinner';
|
|
83
|
+
export { default as SplitButton, SplitButtonProps } from './SplitButton';
|
|
84
|
+
export { default as Tab, TabProps } from './Tab';
|
|
85
|
+
export { default as TabContainer, TabContainerProps } from './TabContainer';
|
|
86
|
+
export { default as TabContent } from './TabContent';
|
|
87
|
+
export { default as Table, TableProps } from './Table';
|
|
88
|
+
export { default as TabPane, TabPaneProps } from './TabPane';
|
|
89
|
+
export { default as Tabs, TabsProps } from './Tabs';
|
|
90
|
+
export { default as ThemeProvider, ThemeProviderProps } from './ThemeProvider';
|
|
91
|
+
export { default as ToggleButton, ToggleButtonProps } from './ToggleButton';
|
|
92
|
+
export { default as ToggleButtonGroup, ToggleButtonCheckboxProps, ToggleButtonGroupProps, ToggleButtonRadioProps } from './ToggleButtonGroup';
|
|
93
|
+
export { default as Tooltip, TooltipProps } from './Tooltip';
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
8
|
-
exports.utils = void 0;
|
|
9
6
|
|
|
10
7
|
var _Accordion2 = _interopRequireDefault(require("./Accordion"));
|
|
11
8
|
|
|
12
9
|
exports.Accordion = _Accordion2.default;
|
|
13
10
|
|
|
11
|
+
var _useAccordionToggle2 = _interopRequireDefault(require("./useAccordionToggle"));
|
|
12
|
+
|
|
13
|
+
exports.useAccordionToggle = _useAccordionToggle2.default;
|
|
14
|
+
|
|
14
15
|
var _Alert2 = _interopRequireDefault(require("./Alert"));
|
|
15
16
|
|
|
16
17
|
exports.Alert = _Alert2.default;
|
|
@@ -39,29 +40,37 @@ var _ButtonToolbar2 = _interopRequireDefault(require("./ButtonToolbar"));
|
|
|
39
40
|
|
|
40
41
|
exports.ButtonToolbar = _ButtonToolbar2.default;
|
|
41
42
|
|
|
42
|
-
var
|
|
43
|
+
var _Card2 = _interopRequireDefault(require("./Card"));
|
|
43
44
|
|
|
44
|
-
exports.
|
|
45
|
+
exports.Card = _Card2.default;
|
|
45
46
|
|
|
46
|
-
var
|
|
47
|
+
var _CardColumns2 = _interopRequireDefault(require("./CardColumns"));
|
|
47
48
|
|
|
48
|
-
exports.
|
|
49
|
+
exports.CardColumns = _CardColumns2.default;
|
|
49
50
|
|
|
50
|
-
var
|
|
51
|
+
var _CardDeck2 = _interopRequireDefault(require("./CardDeck"));
|
|
51
52
|
|
|
52
|
-
exports.
|
|
53
|
+
exports.CardDeck = _CardDeck2.default;
|
|
53
54
|
|
|
54
|
-
var
|
|
55
|
+
var _CardImg2 = _interopRequireDefault(require("./CardImg"));
|
|
55
56
|
|
|
56
|
-
exports.
|
|
57
|
+
exports.CardImg = _CardImg2.default;
|
|
57
58
|
|
|
58
|
-
var
|
|
59
|
+
var _CardGroup2 = _interopRequireDefault(require("./CardGroup"));
|
|
59
60
|
|
|
60
|
-
exports.
|
|
61
|
+
exports.CardGroup = _CardGroup2.default;
|
|
61
62
|
|
|
62
|
-
var
|
|
63
|
+
var _Carousel2 = _interopRequireDefault(require("./Carousel"));
|
|
63
64
|
|
|
64
|
-
exports.
|
|
65
|
+
exports.Carousel = _Carousel2.default;
|
|
66
|
+
|
|
67
|
+
var _CarouselItem2 = _interopRequireDefault(require("./CarouselItem"));
|
|
68
|
+
|
|
69
|
+
exports.CarouselItem = _CarouselItem2.default;
|
|
70
|
+
|
|
71
|
+
var _CloseButton2 = _interopRequireDefault(require("./CloseButton"));
|
|
72
|
+
|
|
73
|
+
exports.CloseButton = _CloseButton2.default;
|
|
65
74
|
|
|
66
75
|
var _Col2 = _interopRequireDefault(require("./Col"));
|
|
67
76
|
|
|
@@ -79,6 +88,10 @@ var _DropdownButton2 = _interopRequireDefault(require("./DropdownButton"));
|
|
|
79
88
|
|
|
80
89
|
exports.DropdownButton = _DropdownButton2.default;
|
|
81
90
|
|
|
91
|
+
var _DropdownItem2 = _interopRequireDefault(require("./DropdownItem"));
|
|
92
|
+
|
|
93
|
+
exports.DropdownItem = _DropdownItem2.default;
|
|
94
|
+
|
|
82
95
|
var _Fade2 = _interopRequireDefault(require("./Fade"));
|
|
83
96
|
|
|
84
97
|
exports.Fade = _Fade2.default;
|
|
@@ -91,26 +104,34 @@ var _FormControl2 = _interopRequireDefault(require("./FormControl"));
|
|
|
91
104
|
|
|
92
105
|
exports.FormControl = _FormControl2.default;
|
|
93
106
|
|
|
107
|
+
var _FormCheck2 = _interopRequireDefault(require("./FormCheck"));
|
|
108
|
+
|
|
109
|
+
exports.FormCheck = _FormCheck2.default;
|
|
110
|
+
|
|
94
111
|
var _FormGroup2 = _interopRequireDefault(require("./FormGroup"));
|
|
95
112
|
|
|
96
113
|
exports.FormGroup = _FormGroup2.default;
|
|
97
114
|
|
|
98
|
-
var
|
|
115
|
+
var _FormLabel2 = _interopRequireDefault(require("./FormLabel"));
|
|
99
116
|
|
|
100
|
-
exports.
|
|
117
|
+
exports.FormLabel = _FormLabel2.default;
|
|
101
118
|
|
|
102
|
-
var
|
|
119
|
+
var _FormText2 = _interopRequireDefault(require("./FormText"));
|
|
103
120
|
|
|
104
|
-
exports.
|
|
121
|
+
exports.FormText = _FormText2.default;
|
|
105
122
|
|
|
106
|
-
var
|
|
123
|
+
var _Container2 = _interopRequireDefault(require("./Container"));
|
|
107
124
|
|
|
108
|
-
exports.
|
|
125
|
+
exports.Container = _Container2.default;
|
|
109
126
|
|
|
110
127
|
var _Image2 = _interopRequireDefault(require("./Image"));
|
|
111
128
|
|
|
112
129
|
exports.Image = _Image2.default;
|
|
113
130
|
|
|
131
|
+
var _Figure2 = _interopRequireDefault(require("./Figure"));
|
|
132
|
+
|
|
133
|
+
exports.Figure = _Figure2.default;
|
|
134
|
+
|
|
114
135
|
var _InputGroup2 = _interopRequireDefault(require("./InputGroup"));
|
|
115
136
|
|
|
116
137
|
exports.InputGroup = _InputGroup2.default;
|
|
@@ -119,10 +140,6 @@ var _Jumbotron2 = _interopRequireDefault(require("./Jumbotron"));
|
|
|
119
140
|
|
|
120
141
|
exports.Jumbotron = _Jumbotron2.default;
|
|
121
142
|
|
|
122
|
-
var _Label2 = _interopRequireDefault(require("./Label"));
|
|
123
|
-
|
|
124
|
-
exports.Label = _Label2.default;
|
|
125
|
-
|
|
126
143
|
var _ListGroup2 = _interopRequireDefault(require("./ListGroup"));
|
|
127
144
|
|
|
128
145
|
exports.ListGroup = _ListGroup2.default;
|
|
@@ -135,10 +152,6 @@ var _Media2 = _interopRequireDefault(require("./Media"));
|
|
|
135
152
|
|
|
136
153
|
exports.Media = _Media2.default;
|
|
137
154
|
|
|
138
|
-
var _MenuItem2 = _interopRequireDefault(require("./MenuItem"));
|
|
139
|
-
|
|
140
|
-
exports.MenuItem = _MenuItem2.default;
|
|
141
|
-
|
|
142
155
|
var _Modal2 = _interopRequireDefault(require("./Modal"));
|
|
143
156
|
|
|
144
157
|
exports.Modal = _Modal2.default;
|
|
@@ -155,10 +168,6 @@ var _ModalFooter2 = _interopRequireDefault(require("./ModalFooter"));
|
|
|
155
168
|
|
|
156
169
|
exports.ModalFooter = _ModalFooter2.default;
|
|
157
170
|
|
|
158
|
-
var _ModalHeader2 = _interopRequireDefault(require("./ModalHeader"));
|
|
159
|
-
|
|
160
|
-
exports.ModalHeader = _ModalHeader2.default;
|
|
161
|
-
|
|
162
171
|
var _ModalTitle2 = _interopRequireDefault(require("./ModalTitle"));
|
|
163
172
|
|
|
164
173
|
exports.ModalTitle = _ModalTitle2.default;
|
|
@@ -191,42 +200,30 @@ var _OverlayTrigger2 = _interopRequireDefault(require("./OverlayTrigger"));
|
|
|
191
200
|
|
|
192
201
|
exports.OverlayTrigger = _OverlayTrigger2.default;
|
|
193
202
|
|
|
194
|
-
var _PageHeader2 = _interopRequireDefault(require("./PageHeader"));
|
|
195
|
-
|
|
196
|
-
exports.PageHeader = _PageHeader2.default;
|
|
197
|
-
|
|
198
203
|
var _PageItem2 = _interopRequireDefault(require("./PageItem"));
|
|
199
204
|
|
|
200
205
|
exports.PageItem = _PageItem2.default;
|
|
201
206
|
|
|
202
|
-
var _Pager2 = _interopRequireDefault(require("./Pager"));
|
|
203
|
-
|
|
204
|
-
exports.Pager = _Pager2.default;
|
|
205
|
-
|
|
206
207
|
var _Pagination2 = _interopRequireDefault(require("./Pagination"));
|
|
207
208
|
|
|
208
209
|
exports.Pagination = _Pagination2.default;
|
|
209
210
|
|
|
210
|
-
var
|
|
211
|
+
var _Popover2 = _interopRequireDefault(require("./Popover"));
|
|
211
212
|
|
|
212
|
-
exports.
|
|
213
|
+
exports.Popover = _Popover2.default;
|
|
213
214
|
|
|
214
|
-
var
|
|
215
|
+
var _PopoverContent2 = _interopRequireDefault(require("./PopoverContent"));
|
|
215
216
|
|
|
216
|
-
exports.
|
|
217
|
+
exports.PopoverContent = _PopoverContent2.default;
|
|
217
218
|
|
|
218
|
-
var
|
|
219
|
+
var _PopoverTitle2 = _interopRequireDefault(require("./PopoverTitle"));
|
|
219
220
|
|
|
220
|
-
exports.
|
|
221
|
+
exports.PopoverTitle = _PopoverTitle2.default;
|
|
221
222
|
|
|
222
223
|
var _ProgressBar2 = _interopRequireDefault(require("./ProgressBar"));
|
|
223
224
|
|
|
224
225
|
exports.ProgressBar = _ProgressBar2.default;
|
|
225
226
|
|
|
226
|
-
var _Radio2 = _interopRequireDefault(require("./Radio"));
|
|
227
|
-
|
|
228
|
-
exports.Radio = _Radio2.default;
|
|
229
|
-
|
|
230
227
|
var _ResponsiveEmbed2 = _interopRequireDefault(require("./ResponsiveEmbed"));
|
|
231
228
|
|
|
232
229
|
exports.ResponsiveEmbed = _ResponsiveEmbed2.default;
|
|
@@ -239,6 +236,10 @@ var _SafeAnchor2 = _interopRequireDefault(require("./SafeAnchor"));
|
|
|
239
236
|
|
|
240
237
|
exports.SafeAnchor = _SafeAnchor2.default;
|
|
241
238
|
|
|
239
|
+
var _Spinner2 = _interopRequireDefault(require("./Spinner"));
|
|
240
|
+
|
|
241
|
+
exports.Spinner = _Spinner2.default;
|
|
242
|
+
|
|
242
243
|
var _SplitButton2 = _interopRequireDefault(require("./SplitButton"));
|
|
243
244
|
|
|
244
245
|
exports.SplitButton = _SplitButton2.default;
|
|
@@ -267,9 +268,9 @@ var _Tabs2 = _interopRequireDefault(require("./Tabs"));
|
|
|
267
268
|
|
|
268
269
|
exports.Tabs = _Tabs2.default;
|
|
269
270
|
|
|
270
|
-
var
|
|
271
|
+
var _ThemeProvider2 = _interopRequireDefault(require("./ThemeProvider"));
|
|
271
272
|
|
|
272
|
-
exports.
|
|
273
|
+
exports.ThemeProvider = _ThemeProvider2.default;
|
|
273
274
|
|
|
274
275
|
var _ToggleButton2 = _interopRequireDefault(require("./ToggleButton"));
|
|
275
276
|
|
|
@@ -283,10 +284,14 @@ var _Tooltip2 = _interopRequireDefault(require("./Tooltip"));
|
|
|
283
284
|
|
|
284
285
|
exports.Tooltip = _Tooltip2.default;
|
|
285
286
|
|
|
286
|
-
var
|
|
287
|
+
var _Toast2 = _interopRequireDefault(require("./Toast"));
|
|
288
|
+
|
|
289
|
+
exports.Toast = _Toast2.default;
|
|
290
|
+
|
|
291
|
+
var _ToastBody2 = _interopRequireDefault(require("./ToastBody"));
|
|
287
292
|
|
|
288
|
-
exports.
|
|
293
|
+
exports.ToastBody = _ToastBody2.default;
|
|
289
294
|
|
|
290
|
-
var
|
|
295
|
+
var _ToastHeader2 = _interopRequireDefault(require("./ToastHeader"));
|
|
291
296
|
|
|
292
|
-
exports.
|
|
297
|
+
exports.ToastHeader = _ToastHeader2.default;
|
package/package.json
CHANGED
|
@@ -1,49 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-bootstrap",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Bootstrap
|
|
3
|
+
"version": "1.0.0-beta.10",
|
|
4
|
+
"description": "Bootstrap 4 components built with React",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "react-bootstrap/react-bootstrap"
|
|
8
8
|
},
|
|
9
9
|
"homepage": "https://react-bootstrap.github.io/",
|
|
10
10
|
"sideEffects": false,
|
|
11
|
-
"main": "
|
|
12
|
-
"jsnext:main": "es/index.js",
|
|
11
|
+
"main": "index.js",
|
|
13
12
|
"module": "es/index.js",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"deploy-docs": "yarn --cwd www deploy",
|
|
19
|
-
"start": "yarn --cwd www run develop",
|
|
20
|
-
"ci-lint": "eslint --rule 'prettier/prettier: 2'",
|
|
21
|
-
"format": "npm run ci-lint . -- --fix",
|
|
22
|
-
"lint": "npm run ci-lint .",
|
|
23
|
-
"precommit": "lint-staged",
|
|
24
|
-
"release": "release && yarn deploy-docs",
|
|
25
|
-
"tdd": "karma start",
|
|
26
|
-
"test": "npm run lint && npm run test-browser && npm run test-node",
|
|
27
|
-
"test-browser": "cross-env NODE_ENV=test karma start --single-run",
|
|
28
|
-
"test-node": "cross-env NODE_ENV=test-server mocha --compilers js:@babel/register test/server/*Spec.js",
|
|
29
|
-
"storybook": "start-storybook -p 6006",
|
|
30
|
-
"build-storybook": "build-storybook"
|
|
13
|
+
"husky": {
|
|
14
|
+
"hooks": {
|
|
15
|
+
"pre-commit": "lint-staged"
|
|
16
|
+
}
|
|
31
17
|
},
|
|
32
18
|
"lint-staged": {
|
|
33
19
|
"*.js": [
|
|
34
|
-
"
|
|
20
|
+
"eslint --fix",
|
|
35
21
|
"git add"
|
|
36
22
|
]
|
|
37
23
|
},
|
|
38
24
|
"prettier": {
|
|
39
|
-
"singleQuote": true
|
|
25
|
+
"singleQuote": true,
|
|
26
|
+
"trailingComma": "all"
|
|
40
27
|
},
|
|
41
|
-
"files": [
|
|
42
|
-
"CHANGELOG.md",
|
|
43
|
-
"lib",
|
|
44
|
-
"dist",
|
|
45
|
-
"es"
|
|
46
|
-
],
|
|
47
28
|
"keywords": [
|
|
48
29
|
"react",
|
|
49
30
|
"ecosystem-react",
|
|
@@ -53,82 +34,27 @@
|
|
|
53
34
|
"author": "Stephen J. Collings <stevoland@gmail.com>",
|
|
54
35
|
"license": "MIT",
|
|
55
36
|
"peerDependencies": {
|
|
56
|
-
"react": ">=16.
|
|
57
|
-
"react-dom": ">=16.
|
|
58
|
-
},
|
|
59
|
-
"devDependencies": {
|
|
60
|
-
"@babel/cli": "^7.0.0",
|
|
61
|
-
"@babel/core": "^7.0.0",
|
|
62
|
-
"@babel/plugin-proposal-class-properties": "^7.0.0",
|
|
63
|
-
"@babel/plugin-proposal-export-default-from": "^7.0.0",
|
|
64
|
-
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
|
|
65
|
-
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
|
66
|
-
"@babel/plugin-transform-runtime": "^7.0.0",
|
|
67
|
-
"@babel/preset-env": "^7.0.0",
|
|
68
|
-
"@babel/preset-react": "^7.0.0",
|
|
69
|
-
"@babel/register": "^7.0.0",
|
|
70
|
-
"babel-eslint": "^9.0.0",
|
|
71
|
-
"babel-loader": "^8.0.2",
|
|
72
|
-
"babel-plugin-add-module-exports": "^0.2.1",
|
|
73
|
-
"babel-plugin-dev-expression": "^0.2.1",
|
|
74
|
-
"babel-plugin-istanbul": "^5.0.1",
|
|
75
|
-
"chai": "^3.5.0",
|
|
76
|
-
"chalk": "^2.3.2",
|
|
77
|
-
"codecov": "^3.0.4",
|
|
78
|
-
"colors": "^1.2.1",
|
|
79
|
-
"create-react-class": "^15.6.3",
|
|
80
|
-
"cross-env": "^5.2.0",
|
|
81
|
-
"enzyme": "^3.1.0",
|
|
82
|
-
"enzyme-adapter-react-16": "^1.2.0",
|
|
83
|
-
"eslint": "^4.19.1",
|
|
84
|
-
"eslint-config-airbnb": "^16.1.0",
|
|
85
|
-
"eslint-config-prettier": "^2.9.0",
|
|
86
|
-
"eslint-import-resolver-webpack": "^0.10.1",
|
|
87
|
-
"eslint-plugin-import": "^2.12.0",
|
|
88
|
-
"eslint-plugin-jsx-a11y": "^6.0.3",
|
|
89
|
-
"eslint-plugin-mocha": "^5.0.0",
|
|
90
|
-
"eslint-plugin-prettier": "^2.6.0",
|
|
91
|
-
"eslint-plugin-react": "^7.8.2",
|
|
92
|
-
"execa": "^0.11.0",
|
|
93
|
-
"fs-extra": "^7.0.0",
|
|
94
|
-
"husky": "^0.14.3",
|
|
95
|
-
"karma": "^4.1.0",
|
|
96
|
-
"karma-chrome-launcher": "^2.2.0",
|
|
97
|
-
"karma-cli": "^2.0.0",
|
|
98
|
-
"karma-coverage": "^1.1.2",
|
|
99
|
-
"karma-firefox-launcher": "^1.1.0",
|
|
100
|
-
"karma-mocha": "^1.3.0",
|
|
101
|
-
"karma-mocha-reporter": "^2.2.5",
|
|
102
|
-
"karma-sinon-chai": "^2.0.2",
|
|
103
|
-
"karma-sourcemap-loader": "^0.3.7",
|
|
104
|
-
"karma-webpack": "^4.0.2",
|
|
105
|
-
"lint-staged": "^7.1.1",
|
|
106
|
-
"lodash": "^4.17.11",
|
|
107
|
-
"mocha": "^5.2.0",
|
|
108
|
-
"prettier": "^1.12.1",
|
|
109
|
-
"react": "^16.8.6",
|
|
110
|
-
"react-dom": "^16.8.6",
|
|
111
|
-
"react-test-renderer": "^16.8.6",
|
|
112
|
-
"release-script": "^1.0.2",
|
|
113
|
-
"sinon": "^2.3.2",
|
|
114
|
-
"sinon-chai": "^2.8.0",
|
|
115
|
-
"webpack": "^4.35.2"
|
|
37
|
+
"react": ">=16.8.0",
|
|
38
|
+
"react-dom": ">=16.8.0"
|
|
116
39
|
},
|
|
117
40
|
"dependencies": {
|
|
118
|
-
"@babel/runtime
|
|
119
|
-
"
|
|
120
|
-
"
|
|
41
|
+
"@babel/runtime": "^7.4.2",
|
|
42
|
+
"@react-bootstrap/react-popper": "1.2.1",
|
|
43
|
+
"@restart/context": "^2.1.4",
|
|
44
|
+
"@restart/hooks": "^0.3.0",
|
|
45
|
+
"classnames": "^2.2.6",
|
|
46
|
+
"dom-helpers": "^3.4.0",
|
|
121
47
|
"invariant": "^2.2.4",
|
|
122
48
|
"keycode": "^2.2.0",
|
|
123
|
-
"
|
|
124
|
-
"prop-types
|
|
125
|
-
"
|
|
126
|
-
"react-
|
|
127
|
-
"react-transition-group": "^
|
|
128
|
-
"uncontrollable": "^7.0.
|
|
129
|
-
"warning": "^
|
|
49
|
+
"popper.js": "^1.14.7",
|
|
50
|
+
"prop-types": "^15.7.2",
|
|
51
|
+
"prop-types-extra": "^1.1.0",
|
|
52
|
+
"react-overlays": "^1.2.0",
|
|
53
|
+
"react-transition-group": "^4.0.0",
|
|
54
|
+
"uncontrollable": "^7.0.0",
|
|
55
|
+
"warning": "^4.0.3"
|
|
130
56
|
},
|
|
131
|
-
"release
|
|
132
|
-
"
|
|
57
|
+
"release": {
|
|
58
|
+
"publishDir": "lib"
|
|
133
59
|
}
|
|
134
60
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
var _SelectableContext = _interopRequireDefault(require("./SelectableContext"));
|
|
11
|
+
|
|
12
|
+
var _AccordionContext = _interopRequireDefault(require("./AccordionContext"));
|
|
13
|
+
|
|
14
|
+
var _default = function _default(eventKey, onClick) {
|
|
15
|
+
var contextEventKey = (0, _react.useContext)(_AccordionContext.default);
|
|
16
|
+
var onSelect = (0, _react.useContext)(_SelectableContext.default);
|
|
17
|
+
return function (e) {
|
|
18
|
+
/*
|
|
19
|
+
Compare the event key in context with the given event key.
|
|
20
|
+
If they are the same, then collapse the component.
|
|
21
|
+
*/
|
|
22
|
+
var eventKeyPassed = eventKey === contextEventKey ? null : eventKey;
|
|
23
|
+
onSelect(eventKeyPassed, e);
|
|
24
|
+
if (onClick) onClick(e);
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
exports.default = _default;
|
|
29
|
+
module.exports = exports["default"];
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
9
|
+
|
|
10
|
+
var _querySelectorAll = _interopRequireDefault(require("dom-helpers/query/querySelectorAll"));
|
|
11
|
+
|
|
12
|
+
var _style = _interopRequireDefault(require("dom-helpers/style"));
|
|
13
|
+
|
|
14
|
+
var _scrollbarSize = _interopRequireDefault(require("dom-helpers/util/scrollbarSize"));
|
|
15
|
+
|
|
16
|
+
var _ModalManager2 = _interopRequireDefault(require("react-overlays/ModalManager"));
|
|
17
|
+
|
|
18
|
+
var Selector = {
|
|
19
|
+
FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
|
|
20
|
+
STICKY_CONTENT: '.sticky-top',
|
|
21
|
+
NAVBAR_TOGGLER: '.navbar-toggler'
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var BootstrapModalManager =
|
|
25
|
+
/*#__PURE__*/
|
|
26
|
+
function (_ModalManager) {
|
|
27
|
+
(0, _inheritsLoose2.default)(BootstrapModalManager, _ModalManager);
|
|
28
|
+
|
|
29
|
+
function BootstrapModalManager() {
|
|
30
|
+
var _this;
|
|
31
|
+
|
|
32
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
33
|
+
args[_key] = arguments[_key];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
_this = _ModalManager.call.apply(_ModalManager, [this].concat(args)) || this;
|
|
37
|
+
|
|
38
|
+
_this.adjustAndStore = function (prop, element, adjust) {
|
|
39
|
+
var actual = element.style[prop];
|
|
40
|
+
element.dataset[prop] = actual;
|
|
41
|
+
(0, _style.default)(element, prop, parseFloat((0, _style.default)(element, prop)) + adjust + "px");
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
_this.restore = function (prop, element) {
|
|
45
|
+
var value = element.dataset[prop];
|
|
46
|
+
|
|
47
|
+
if (value !== undefined) {
|
|
48
|
+
delete element.dataset[prop];
|
|
49
|
+
(0, _style.default)(element, prop, value);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
return _this;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
var _proto = BootstrapModalManager.prototype;
|
|
57
|
+
|
|
58
|
+
_proto.setContainerStyle = function setContainerStyle(containerState, container) {
|
|
59
|
+
var _this2 = this;
|
|
60
|
+
|
|
61
|
+
_ModalManager.prototype.setContainerStyle.call(this, containerState, container);
|
|
62
|
+
|
|
63
|
+
if (!containerState.overflowing) return;
|
|
64
|
+
var size = (0, _scrollbarSize.default)();
|
|
65
|
+
(0, _querySelectorAll.default)(container, Selector.FIXED_CONTENT).forEach(function (el) {
|
|
66
|
+
return _this2.adjustAndStore('paddingRight', el, size);
|
|
67
|
+
});
|
|
68
|
+
(0, _querySelectorAll.default)(container, Selector.STICKY_CONTENT).forEach(function (el) {
|
|
69
|
+
return _this2.adjustAndStore('margingRight', el, -size);
|
|
70
|
+
});
|
|
71
|
+
(0, _querySelectorAll.default)(container, Selector.NAVBAR_TOGGLER).forEach(function (el) {
|
|
72
|
+
return _this2.adjustAndStore('margingRight', el, size);
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
_proto.removeContainerStyle = function removeContainerStyle(containerState, container) {
|
|
77
|
+
var _this3 = this;
|
|
78
|
+
|
|
79
|
+
_ModalManager.prototype.removeContainerStyle.call(this, containerState, container);
|
|
80
|
+
|
|
81
|
+
(0, _querySelectorAll.default)(container, Selector.FIXED_CONTENT).forEach(function (el) {
|
|
82
|
+
return _this3.restore('paddingRight', el);
|
|
83
|
+
});
|
|
84
|
+
(0, _querySelectorAll.default)(container, Selector.STICKY_CONTENT).forEach(function (el) {
|
|
85
|
+
return _this3.restore('margingRight', el);
|
|
86
|
+
});
|
|
87
|
+
(0, _querySelectorAll.default)(container, Selector.NAVBAR_TOGGLER).forEach(function (el) {
|
|
88
|
+
return _this3.restore('margingRight', el);
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
return BootstrapModalManager;
|
|
93
|
+
}(_ModalManager2.default);
|
|
94
|
+
|
|
95
|
+
exports.default = BootstrapModalManager;
|
|
96
|
+
module.exports = exports["default"];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.map = map;
|
|
7
|
+
exports.forEach = forEach;
|
|
8
|
+
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Iterates through children that are typically specified as `props.children`,
|
|
13
|
+
* but only maps over children that are "valid elements".
|
|
14
|
+
*
|
|
15
|
+
* The mapFunction provided index will be normalised to the components mapped,
|
|
16
|
+
* so an invalid component would not increase the index.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
function map(children, func) {
|
|
20
|
+
var index = 0;
|
|
21
|
+
return _react.default.Children.map(children, function (child) {
|
|
22
|
+
return _react.default.isValidElement(child) ? func(child, index++) : child;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Iterates through children that are "valid elements".
|
|
27
|
+
*
|
|
28
|
+
* The provided forEachFunc(child, index) will be called for each
|
|
29
|
+
* leaf child with the index reflecting the position relative to "valid components".
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
function forEach(children, func) {
|
|
34
|
+
var index = 0;
|
|
35
|
+
|
|
36
|
+
_react.default.Children.forEach(children, function (child) {
|
|
37
|
+
if (_react.default.isValidElement(child)) func(child, index++);
|
|
38
|
+
});
|
|
39
|
+
}
|