react-bootstrap 1.0.0-beta.12 → 1.0.0-beta.16
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/package.json +6 -0
- package/AbstractNavItem/package.json +6 -0
- package/Accordion/package.json +7 -0
- package/AccordionCollapse/package.json +7 -0
- package/AccordionContext/package.json +6 -0
- package/AccordionToggle/package.json +7 -0
- package/AccordionToggle.d.ts +5 -0
- package/Alert/package.json +7 -0
- package/Alert.d.ts +4 -3
- package/Badge/package.json +7 -0
- package/Badge.d.ts +5 -2
- package/BootstrapModalManager/package.json +6 -0
- package/Breadcrumb/package.json +7 -0
- package/BreadcrumbItem/package.json +7 -0
- package/Button/package.json +7 -0
- package/ButtonGroup/package.json +7 -0
- package/ButtonToolbar/package.json +7 -0
- package/Card/package.json +7 -0
- package/CardColumns/package.json +7 -0
- package/CardContext/package.json +6 -0
- package/CardDeck/package.json +7 -0
- package/CardGroup/package.json +7 -0
- package/CardImg/package.json +7 -0
- package/Carousel/package.json +7 -0
- package/CarouselCaption/package.json +7 -0
- package/CarouselItem/package.json +7 -0
- package/CloseButton/package.json +7 -0
- package/Col/package.json +7 -0
- package/Collapse/package.json +7 -0
- package/Container/package.json +7 -0
- package/Dropdown/package.json +7 -0
- package/DropdownButton/package.json +7 -0
- package/DropdownItem/package.json +7 -0
- package/DropdownItem.d.ts +8 -3
- package/DropdownMenu/package.json +7 -0
- package/DropdownToggle/package.json +7 -0
- package/DropdownToggle.d.ts +4 -3
- package/ElementChildren/package.json +6 -0
- package/Fade/package.json +7 -0
- package/Feedback/package.json +7 -0
- package/Figure/package.json +7 -0
- package/FigureCaption/package.json +7 -0
- package/FigureImage/package.json +7 -0
- package/Form/package.json +7 -0
- package/FormCheck/package.json +7 -0
- package/FormCheck.d.ts +2 -3
- package/FormCheckInput/package.json +7 -0
- package/FormCheckInput.d.ts +3 -4
- package/FormCheckLabel/package.json +7 -0
- package/FormContext/package.json +6 -0
- package/FormControl/package.json +7 -0
- package/FormControl.d.ts +9 -6
- package/FormGroup/package.json +7 -0
- package/FormGroup.d.ts +2 -3
- package/FormLabel/package.json +7 -0
- package/FormText/package.json +7 -0
- package/Image/package.json +7 -0
- package/InputGroup/package.json +7 -0
- package/Jumbotron/package.json +7 -0
- package/ListGroup/package.json +7 -0
- package/ListGroupItem/package.json +7 -0
- package/Media/package.json +7 -0
- package/Modal/package.json +7 -0
- package/Modal.d.ts +2 -0
- package/ModalBody/package.json +7 -0
- package/ModalContext/package.json +6 -0
- package/ModalDialog/package.json +7 -0
- package/ModalFooter/package.json +7 -0
- package/ModalHeader/package.json +7 -0
- package/ModalTitle/package.json +7 -0
- package/Nav/package.json +7 -0
- package/NavContext/package.json +6 -0
- package/NavDropdown/package.json +7 -0
- package/NavItem/package.json +7 -0
- package/NavLink/package.json +7 -0
- package/NavLink.d.ts +8 -3
- package/Navbar/package.json +7 -0
- package/NavbarBrand/package.json +7 -0
- package/NavbarCollapse/package.json +7 -0
- package/NavbarContext/package.json +6 -0
- package/NavbarToggle/package.json +7 -0
- package/Overlay/package.json +7 -0
- package/OverlayTrigger/package.json +7 -0
- package/OverlayTrigger.d.ts +1 -0
- package/PageItem/package.json +7 -0
- package/Pagination/package.json +7 -0
- package/Popover/package.json +7 -0
- package/Popover.d.ts +1 -0
- package/PopoverContent/package.json +7 -0
- package/PopoverTitle/package.json +7 -0
- package/ProgressBar/package.json +7 -0
- package/README.md +9 -9
- package/ResponsiveEmbed/package.json +7 -0
- package/Row/package.json +7 -0
- package/SafeAnchor/package.json +7 -0
- package/SafeAnchor.d.ts +1 -1
- package/SelectableContext/package.json +6 -0
- package/Spinner/package.json +7 -0
- package/Spinner.d.ts +1 -1
- package/SplitButton/package.json +7 -0
- package/Switch/package.json +6 -0
- package/Tab/package.json +7 -0
- package/TabContainer/package.json +7 -0
- package/TabContent/package.json +7 -0
- package/TabContext/package.json +6 -0
- package/TabPane/package.json +7 -0
- package/Table/package.json +7 -0
- package/Tabs/package.json +7 -0
- package/Tabs.d.ts +8 -3
- package/ThemeProvider/package.json +7 -0
- package/Toast/package.json +7 -0
- package/ToastBody/package.json +7 -0
- package/ToastContext/package.json +6 -0
- package/ToastHeader/package.json +7 -0
- package/ToggleButton/package.json +7 -0
- package/ToggleButton.d.ts +5 -5
- package/ToggleButtonGroup/package.json +7 -0
- package/ToggleButtonGroup.d.ts +4 -3
- package/Tooltip/package.json +7 -0
- package/{AbstractNav.js → cjs/AbstractNav.js} +18 -16
- package/{AbstractNavItem.js → cjs/AbstractNavItem.js} +0 -0
- package/{Accordion.js → cjs/Accordion.js} +0 -0
- package/{AccordionCollapse.js → cjs/AccordionCollapse.js} +0 -0
- package/{AccordionContext.js → cjs/AccordionContext.js} +0 -0
- package/cjs/AccordionToggle.js +50 -0
- package/{Alert.js → cjs/Alert.js} +2 -2
- package/{Badge.js → cjs/Badge.js} +4 -2
- package/{utils → cjs}/BootstrapModalManager.js +9 -5
- package/{Breadcrumb.js → cjs/Breadcrumb.js} +0 -0
- package/{BreadcrumbItem.js → cjs/BreadcrumbItem.js} +0 -0
- package/{Button.js → cjs/Button.js} +0 -0
- package/{ButtonGroup.js → cjs/ButtonGroup.js} +0 -0
- package/{ButtonToolbar.js → cjs/ButtonToolbar.js} +0 -0
- package/{Card.js → cjs/Card.js} +2 -2
- package/{CardColumns.js → cjs/CardColumns.js} +1 -1
- package/{CardContext.js → cjs/CardContext.js} +0 -0
- package/{CardDeck.js → cjs/CardDeck.js} +1 -1
- package/{CardGroup.js → cjs/CardGroup.js} +1 -1
- package/{CardImg.js → cjs/CardImg.js} +0 -0
- package/{Carousel.js → cjs/Carousel.js} +9 -9
- package/{CarouselCaption.js → cjs/CarouselCaption.js} +1 -1
- package/{CarouselItem.js → cjs/CarouselItem.js} +1 -1
- package/{CloseButton.js → cjs/CloseButton.js} +0 -0
- package/{Col.js → cjs/Col.js} +0 -0
- package/{Collapse.js → cjs/Collapse.js} +7 -7
- package/{Container.js → cjs/Container.js} +0 -0
- package/{Dropdown.js → cjs/Dropdown.js} +5 -5
- package/{DropdownButton.js → cjs/DropdownButton.js} +0 -0
- package/{DropdownItem.js → cjs/DropdownItem.js} +0 -0
- package/{DropdownMenu.js → cjs/DropdownMenu.js} +39 -46
- package/cjs/DropdownToggle.js +59 -0
- package/{utils → cjs}/ElementChildren.js +0 -0
- package/{Fade.js → cjs/Fade.js} +4 -4
- package/{Feedback.js → cjs/Feedback.js} +0 -0
- package/{Figure.js → cjs/Figure.js} +1 -1
- package/{FigureCaption.js → cjs/FigureCaption.js} +1 -1
- package/{FigureImage.js → cjs/FigureImage.js} +0 -0
- package/{Form.js → cjs/Form.js} +9 -6
- package/{FormCheck.js → cjs/FormCheck.js} +17 -10
- package/{FormCheckInput.js → cjs/FormCheckInput.js} +9 -6
- package/{FormCheckLabel.js → cjs/FormCheckLabel.js} +5 -9
- package/{FormContext.js → cjs/FormContext.js} +0 -0
- package/{FormControl.js → cjs/FormControl.js} +0 -0
- package/{FormGroup.js → cjs/FormGroup.js} +0 -0
- package/{FormLabel.js → cjs/FormLabel.js} +0 -0
- package/{FormText.js → cjs/FormText.js} +0 -0
- package/cjs/Image.js +47 -0
- package/{InputGroup.js → cjs/InputGroup.js} +1 -1
- package/{Jumbotron.js → cjs/Jumbotron.js} +0 -0
- package/{ListGroup.js → cjs/ListGroup.js} +16 -3
- package/{ListGroupItem.js → cjs/ListGroupItem.js} +0 -0
- package/{Media.js → cjs/Media.js} +1 -1
- package/{Modal.js → cjs/Modal.js} +13 -11
- package/{ModalBody.js → cjs/ModalBody.js} +1 -1
- package/{ModalContext.js → cjs/ModalContext.js} +0 -0
- package/{ModalDialog.js → cjs/ModalDialog.js} +1 -1
- package/{ModalFooter.js → cjs/ModalFooter.js} +1 -1
- package/{ModalHeader.js → cjs/ModalHeader.js} +0 -0
- package/{ModalTitle.js → cjs/ModalTitle.js} +2 -2
- package/{Nav.js → cjs/Nav.js} +0 -0
- package/{NavContext.js → cjs/NavContext.js} +0 -0
- package/cjs/NavDropdown.js +90 -0
- package/{NavItem.js → cjs/NavItem.js} +0 -0
- package/{NavLink.js → cjs/NavLink.js} +0 -0
- package/{Navbar.js → cjs/Navbar.js} +1 -1
- package/{NavbarBrand.js → cjs/NavbarBrand.js} +0 -0
- package/{NavbarCollapse.js → cjs/NavbarCollapse.js} +0 -0
- package/{NavbarContext.js → cjs/NavbarContext.js} +0 -0
- package/{NavbarToggle.js → cjs/NavbarToggle.js} +1 -1
- package/{Overlay.js → cjs/Overlay.js} +0 -0
- package/{OverlayTrigger.js → cjs/OverlayTrigger.js} +2 -1
- package/{PageItem.js → cjs/PageItem.js} +7 -4
- package/cjs/Pagination.js +52 -0
- package/{Popover.js → cjs/Popover.js} +9 -10
- package/{PopoverContent.js → cjs/PopoverContent.js} +0 -0
- package/{PopoverTitle.js → cjs/PopoverTitle.js} +0 -0
- package/cjs/ProgressBar.js +149 -0
- package/cjs/ResponsiveEmbed.js +44 -0
- package/{Row.js → cjs/Row.js} +0 -0
- package/{SafeAnchor.js → cjs/SafeAnchor.js} +1 -1
- package/{SelectableContext.js → cjs/SelectableContext.js} +0 -0
- package/{Spinner.js → cjs/Spinner.js} +0 -0
- package/{SplitButton.js → cjs/SplitButton.js} +0 -0
- package/cjs/Switch.js +26 -0
- package/{Tab.js → cjs/Tab.js} +0 -0
- package/cjs/TabContainer.js +60 -0
- package/cjs/TabContent.js +34 -0
- package/{TabContext.js → cjs/TabContext.js} +0 -0
- package/{TabPane.js → cjs/TabPane.js} +0 -0
- package/cjs/Table.js +54 -0
- package/{Tabs.js → cjs/Tabs.js} +2 -3
- package/{ThemeProvider.js → cjs/ThemeProvider.js} +0 -0
- package/{Toast.js → cjs/Toast.js} +0 -0
- package/{ToastBody.js → cjs/ToastBody.js} +1 -1
- package/{ToastContext.js → cjs/ToastContext.js} +0 -0
- package/{ToastHeader.js → cjs/ToastHeader.js} +0 -0
- package/cjs/ToggleButton.js +67 -0
- package/cjs/ToggleButtonGroup.js +90 -0
- package/{Tooltip.js → cjs/Tooltip.js} +0 -0
- package/{utils → cjs}/createChainedFunction.js +0 -0
- package/{utils → cjs}/createWithBsPrefix.js +3 -3
- package/{utils → cjs}/divWithClassName.js +0 -0
- package/{index.js → cjs/index.js} +14 -2
- package/{utils → cjs}/triggerBrowserReflow.js +0 -0
- package/cjs/useWrappedRefWithWarning.js +24 -0
- package/createChainedFunction/package.json +6 -0
- package/createWithBsPrefix/package.json +6 -0
- package/dist/react-bootstrap.js +9369 -11849
- package/dist/react-bootstrap.min.js +4 -18
- package/divWithClassName/package.json +6 -0
- package/{es → esm}/AbstractNav.js +17 -15
- package/{es → esm}/AbstractNavItem.js +0 -0
- package/{es → esm}/Accordion.d.ts +0 -0
- package/{es → esm}/Accordion.js +0 -0
- package/{es → esm}/AccordionCollapse.d.ts +0 -0
- package/{es → esm}/AccordionCollapse.js +0 -0
- package/{es → esm}/AccordionContext.js +0 -0
- package/{es → esm}/AccordionToggle.d.ts +5 -0
- package/{es → esm}/AccordionToggle.js +16 -2
- package/{es → esm}/Alert.d.ts +4 -3
- package/{es → esm}/Alert.js +2 -2
- package/{es → esm}/Badge.d.ts +5 -2
- package/{es → esm}/Badge.js +4 -2
- package/{es/utils → esm}/BootstrapModalManager.js +9 -5
- package/{es → esm}/Breadcrumb.d.ts +0 -0
- package/{es → esm}/Breadcrumb.js +0 -0
- package/{es → esm}/BreadcrumbItem.d.ts +0 -0
- package/{es → esm}/BreadcrumbItem.js +0 -0
- package/{es → esm}/Button.d.ts +0 -0
- package/{es → esm}/Button.js +0 -0
- package/{es → esm}/ButtonGroup.d.ts +0 -0
- package/{es → esm}/ButtonGroup.js +0 -0
- package/{es → esm}/ButtonToolbar.d.ts +0 -0
- package/{es → esm}/ButtonToolbar.js +0 -0
- package/{es → esm}/Card.d.ts +0 -0
- package/{es → esm}/Card.js +2 -2
- package/{es → esm}/CardColumns.d.ts +0 -0
- package/esm/CardColumns.js +2 -0
- package/{es → esm}/CardContext.js +0 -0
- package/{es → esm}/CardDeck.d.ts +0 -0
- package/esm/CardDeck.js +2 -0
- package/{es → esm}/CardGroup.d.ts +0 -0
- package/esm/CardGroup.js +2 -0
- package/{es → esm}/CardImg.d.ts +0 -0
- package/{es → esm}/CardImg.js +0 -0
- package/{es → esm}/Carousel.d.ts +0 -0
- package/{es → esm}/Carousel.js +6 -6
- package/{es → esm}/CarouselCaption.d.ts +0 -0
- package/{es → esm}/CarouselCaption.js +1 -1
- package/{es → esm}/CarouselItem.d.ts +0 -0
- package/esm/CarouselItem.js +2 -0
- package/{es → esm}/CloseButton.d.ts +0 -0
- package/{es → esm}/CloseButton.js +0 -0
- package/{es → esm}/Col.d.ts +0 -0
- package/{es → esm}/Col.js +0 -0
- package/{es → esm}/Collapse.d.ts +0 -0
- package/{es → esm}/Collapse.js +6 -6
- package/{es → esm}/Container.d.ts +0 -0
- package/{es → esm}/Container.js +0 -0
- package/{es → esm}/Dropdown.d.ts +0 -0
- package/{es → esm}/Dropdown.js +4 -4
- package/{es → esm}/DropdownButton.d.ts +0 -0
- package/{es → esm}/DropdownButton.js +0 -0
- package/{es → esm}/DropdownItem.d.ts +8 -3
- package/{es → esm}/DropdownItem.js +0 -0
- package/{es → esm}/DropdownMenu.d.ts +0 -0
- package/esm/DropdownMenu.js +69 -0
- package/esm/DropdownToggle.d.ts +18 -0
- package/esm/DropdownToggle.js +40 -0
- package/{es/utils → esm}/ElementChildren.js +0 -0
- package/{es → esm}/Fade.d.ts +0 -0
- package/{es → esm}/Fade.js +3 -3
- package/{es → esm}/Feedback.d.ts +0 -0
- package/{es → esm}/Feedback.js +0 -0
- package/{es → esm}/Figure.d.ts +0 -0
- package/{es → esm}/Figure.js +1 -1
- package/{es → esm}/FigureCaption.d.ts +0 -0
- package/esm/FigureCaption.js +5 -0
- package/{es → esm}/FigureImage.d.ts +0 -0
- package/{es → esm}/FigureImage.js +0 -0
- package/{es → esm}/Form.d.ts +0 -0
- package/{es → esm}/Form.js +6 -4
- package/{es → esm}/FormCheck.d.ts +2 -3
- package/{es → esm}/FormCheck.js +14 -8
- package/{es → esm}/FormCheckInput.d.ts +3 -4
- package/{es → esm}/FormCheckInput.js +8 -6
- package/{es → esm}/FormCheckLabel.d.ts +0 -0
- package/{es → esm}/FormCheckLabel.js +5 -9
- package/{es → esm}/FormContext.js +0 -0
- package/{es → esm}/FormControl.d.ts +9 -6
- package/{es → esm}/FormControl.js +0 -0
- package/{es → esm}/FormGroup.d.ts +2 -3
- package/{es → esm}/FormGroup.js +0 -0
- package/{es → esm}/FormLabel.d.ts +0 -0
- package/{es → esm}/FormLabel.js +0 -0
- package/{es → esm}/FormText.d.ts +0 -0
- package/{es → esm}/FormText.js +0 -0
- package/{es → esm}/Image.d.ts +0 -0
- package/esm/Image.js +32 -0
- package/{es → esm}/InputGroup.d.ts +0 -0
- package/{es → esm}/InputGroup.js +1 -1
- package/{es → esm}/Jumbotron.d.ts +0 -0
- package/{es → esm}/Jumbotron.js +0 -0
- package/{es → esm}/ListGroup.d.ts +0 -0
- package/{es → esm}/ListGroup.js +15 -3
- package/{es → esm}/ListGroupItem.d.ts +0 -0
- package/{es → esm}/ListGroupItem.js +0 -0
- package/{es → esm}/Media.d.ts +0 -0
- package/{es → esm}/Media.js +1 -1
- package/{es → esm}/Modal.d.ts +2 -0
- package/{es → esm}/Modal.js +9 -8
- package/{es → esm}/ModalBody.d.ts +0 -0
- package/esm/ModalBody.js +2 -0
- package/{es → esm}/ModalContext.js +0 -0
- package/{es → esm}/ModalDialog.d.ts +0 -0
- package/{es → esm}/ModalDialog.js +1 -1
- package/{es → esm}/ModalFooter.d.ts +0 -0
- package/esm/ModalFooter.js +2 -0
- package/{es → esm}/ModalHeader.d.ts +0 -0
- package/{es → esm}/ModalHeader.js +0 -0
- package/{es → esm}/ModalTitle.d.ts +0 -0
- package/{es → esm}/ModalTitle.js +2 -2
- package/{es → esm}/Nav.d.ts +0 -0
- package/{es → esm}/Nav.js +0 -0
- package/{es → esm}/NavContext.js +0 -0
- package/{es → esm}/NavDropdown.d.ts +0 -0
- package/esm/NavDropdown.js +73 -0
- package/{es → esm}/NavItem.d.ts +0 -0
- package/{es → esm}/NavItem.js +0 -0
- package/esm/NavLink.d.ts +25 -0
- package/{es → esm}/NavLink.js +0 -0
- package/{es → esm}/Navbar.d.ts +0 -0
- package/{es → esm}/Navbar.js +1 -1
- package/{es → esm}/NavbarBrand.d.ts +0 -0
- package/{es → esm}/NavbarBrand.js +0 -0
- package/{es → esm}/NavbarCollapse.d.ts +0 -0
- package/{es → esm}/NavbarCollapse.js +0 -0
- package/{es → esm}/NavbarContext.js +0 -0
- package/{es → esm}/NavbarToggle.d.ts +0 -0
- package/{es → esm}/NavbarToggle.js +1 -1
- package/{es → esm}/Overlay.d.ts +0 -0
- package/{es → esm}/Overlay.js +0 -0
- package/{es → esm}/OverlayTrigger.d.ts +1 -0
- package/{es → esm}/OverlayTrigger.js +3 -1
- package/{es → esm}/PageItem.d.ts +0 -0
- package/{es → esm}/PageItem.js +5 -2
- package/{es → esm}/Pagination.d.ts +0 -0
- package/esm/Pagination.js +36 -0
- package/{es → esm}/Popover.d.ts +1 -0
- package/{es → esm}/Popover.js +10 -13
- package/{es → esm}/PopoverContent.d.ts +0 -0
- package/{es → esm}/PopoverContent.js +0 -0
- package/{es → esm}/PopoverTitle.d.ts +0 -0
- package/{es → esm}/PopoverTitle.js +0 -0
- package/{es → esm}/ProgressBar.d.ts +0 -0
- package/esm/ProgressBar.js +131 -0
- package/{es → esm}/ResponsiveEmbed.d.ts +0 -0
- package/esm/ResponsiveEmbed.js +27 -0
- package/{es → esm}/Row.d.ts +0 -0
- package/{es → esm}/Row.js +0 -0
- package/{es → esm}/SafeAnchor.d.ts +1 -1
- package/{es → esm}/SafeAnchor.js +1 -1
- package/{es → esm}/SelectableContext.js +0 -0
- package/{es → esm}/Spinner.d.ts +1 -1
- package/{es → esm}/Spinner.js +0 -0
- package/{es → esm}/SplitButton.d.ts +0 -0
- package/{es → esm}/SplitButton.js +0 -0
- package/esm/Switch.js +13 -0
- package/{es → esm}/Tab.d.ts +0 -0
- package/{es → esm}/Tab.js +0 -0
- package/{es → esm}/TabContainer.d.ts +0 -0
- package/esm/TabContainer.js +47 -0
- package/{es → esm}/TabContent.d.ts +0 -0
- package/esm/TabContent.js +20 -0
- package/{es → esm}/TabContext.js +0 -0
- package/{es → esm}/TabPane.d.ts +0 -0
- package/{es → esm}/TabPane.js +0 -0
- package/{es → esm}/Table.d.ts +0 -0
- package/esm/Table.js +39 -0
- package/{es → esm}/Tabs.d.ts +8 -3
- package/{es → esm}/Tabs.js +2 -3
- package/{es → esm}/ThemeProvider.d.ts +0 -0
- package/{es → esm}/ThemeProvider.js +0 -0
- package/{es → esm}/Toast.d.ts +0 -0
- package/{es → esm}/Toast.js +0 -0
- package/{es → esm}/ToastBody.d.ts +0 -0
- package/esm/ToastBody.js +2 -0
- package/{es → esm}/ToastContext.js +0 -0
- package/{es → esm}/ToastHeader.d.ts +0 -0
- package/{es → esm}/ToastHeader.js +0 -0
- package/{es → esm}/ToggleButton.d.ts +5 -5
- package/esm/ToggleButton.js +51 -0
- package/{es → esm}/ToggleButtonGroup.d.ts +4 -3
- package/esm/ToggleButtonGroup.js +70 -0
- package/{es → esm}/Tooltip.d.ts +0 -0
- package/{es → esm}/Tooltip.js +0 -0
- package/{es/utils → esm}/createChainedFunction.js +0 -0
- package/{es/utils → esm}/createWithBsPrefix.js +2 -2
- package/{es/utils → esm}/divWithClassName.js +0 -0
- package/{es → esm}/helpers.d.ts +6 -0
- package/{es → esm}/index.d.ts +2 -0
- package/{es → esm}/index.js +7 -2
- package/{es/utils → esm}/triggerBrowserReflow.js +0 -0
- package/esm/useWrappedRefWithWarning.js +12 -0
- package/helpers.d.ts +6 -0
- package/index.d.ts +2 -0
- package/package.json +18 -10
- package/triggerBrowserReflow/package.json +6 -0
- package/useWrappedRefWithWarning/package.json +6 -0
- package/AccordionToggle.js +0 -32
- package/DropdownToggle.js +0 -86
- package/Image.js +0 -59
- package/NavDropdown.js +0 -67
- package/Pagination.js +0 -67
- package/ProgressBar.js +0 -161
- package/ResponsiveEmbed.js +0 -60
- package/TabContainer.js +0 -96
- package/TabContent.js +0 -50
- package/Table.js +0 -70
- package/ToggleButton.js +0 -100
- package/ToggleButtonGroup.js +0 -111
- package/es/CardColumns.js +0 -2
- package/es/CardDeck.js +0 -2
- package/es/CardGroup.js +0 -2
- package/es/CarouselItem.js +0 -2
- package/es/DropdownMenu.js +0 -78
- package/es/DropdownToggle.d.ts +0 -17
- package/es/DropdownToggle.js +0 -66
- package/es/FigureCaption.js +0 -5
- package/es/Image.js +0 -44
- package/es/ModalBody.js +0 -2
- package/es/ModalFooter.js +0 -2
- package/es/NavDropdown.js +0 -53
- package/es/NavLink.d.ts +0 -20
- package/es/Pagination.js +0 -51
- package/es/ProgressBar.js +0 -142
- package/es/ResponsiveEmbed.js +0 -42
- package/es/TabContainer.js +0 -81
- package/es/TabContent.js +0 -36
- package/es/Table.js +0 -55
- package/es/ToastBody.js +0 -2
- package/es/ToggleButton.js +0 -86
- package/es/ToggleButtonGroup.js +0 -93
- package/es/useAccordionToggle.js +0 -16
- package/useAccordionToggle.js +0 -29
package/{es → esm}/Figure.d.ts
RENAMED
|
File without changes
|
package/{es → esm}/Figure.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{es → esm}/Form.d.ts
RENAMED
|
File without changes
|
package/{es → esm}/Form.js
RENAMED
|
@@ -2,13 +2,14 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import createWithBsPrefix from './utils/createWithBsPrefix';
|
|
6
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
7
|
-
import FormGroup from './FormGroup';
|
|
8
|
-
import FormControl from './FormControl';
|
|
9
5
|
import FormCheck from './FormCheck';
|
|
6
|
+
import FormControl from './FormControl';
|
|
7
|
+
import FormGroup from './FormGroup';
|
|
10
8
|
import FormLabel from './FormLabel';
|
|
11
9
|
import FormText from './FormText';
|
|
10
|
+
import Switch from './Switch';
|
|
11
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
12
|
+
import createWithBsPrefix from './createWithBsPrefix';
|
|
12
13
|
var defaultProps = {
|
|
13
14
|
inline: false
|
|
14
15
|
};
|
|
@@ -33,6 +34,7 @@ Form.Row = createWithBsPrefix('form-row');
|
|
|
33
34
|
Form.Group = FormGroup;
|
|
34
35
|
Form.Control = FormControl;
|
|
35
36
|
Form.Check = FormCheck;
|
|
37
|
+
Form.Switch = Switch;
|
|
36
38
|
Form.Label = FormLabel;
|
|
37
39
|
Form.Text = FormText;
|
|
38
40
|
export default Form;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
import FormCheckInput from './FormCheckInput';
|
|
4
3
|
import FormCheckLabel from './FormCheckLabel';
|
|
5
|
-
|
|
6
4
|
import { BsPrefixComponent } from './helpers';
|
|
7
5
|
|
|
8
6
|
export interface FormCheckProps {
|
|
7
|
+
bsCustomPrefix?: string;
|
|
9
8
|
innerRef?: React.LegacyRef<this>;
|
|
10
9
|
id?: string;
|
|
11
10
|
inline?: boolean;
|
|
@@ -13,7 +12,7 @@ export interface FormCheckProps {
|
|
|
13
12
|
title?: string;
|
|
14
13
|
label?: React.ReactNode;
|
|
15
14
|
custom?: boolean;
|
|
16
|
-
type?: 'checkbox' | 'radio';
|
|
15
|
+
type?: 'checkbox' | 'radio' | 'switch';
|
|
17
16
|
isValid?: boolean;
|
|
18
17
|
isInvalid?: boolean;
|
|
19
18
|
feedback?: React.ReactNode;
|
package/{es → esm}/FormCheck.js
RENAMED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
+
import all from 'prop-types-extra/lib/all';
|
|
4
5
|
import React, { useContext, useMemo } from 'react';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
-
import FormContext from './FormContext';
|
|
7
6
|
import Feedback from './Feedback';
|
|
8
7
|
import FormCheckInput from './FormCheckInput';
|
|
9
8
|
import FormCheckLabel from './FormCheckLabel';
|
|
9
|
+
import FormContext from './FormContext';
|
|
10
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
10
11
|
var defaultProps = {
|
|
11
12
|
type: 'checkbox',
|
|
12
13
|
inline: false,
|
|
@@ -18,6 +19,7 @@ var defaultProps = {
|
|
|
18
19
|
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
19
20
|
var id = _ref.id,
|
|
20
21
|
bsPrefix = _ref.bsPrefix,
|
|
22
|
+
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
21
23
|
inline = _ref.inline,
|
|
22
24
|
disabled = _ref.disabled,
|
|
23
25
|
isValid = _ref.isValid,
|
|
@@ -29,10 +31,13 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
29
31
|
type = _ref.type,
|
|
30
32
|
label = _ref.label,
|
|
31
33
|
children = _ref.children,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
propCustom = _ref.custom,
|
|
35
|
+
_ref$as = _ref.as,
|
|
36
|
+
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
37
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
34
38
|
|
|
35
|
-
|
|
39
|
+
var custom = type === 'switch' ? true : propCustom;
|
|
40
|
+
bsPrefix = custom ? useBootstrapPrefix(bsCustomPrefix, 'custom-control') : useBootstrapPrefix(bsPrefix, 'form-check');
|
|
36
41
|
|
|
37
42
|
var _useContext = useContext(FormContext),
|
|
38
43
|
controlId = _useContext.controlId;
|
|
@@ -45,18 +50,19 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
45
50
|
}, [controlId, custom, id]);
|
|
46
51
|
var hasLabel = label != null && label !== false && !children;
|
|
47
52
|
var input = React.createElement(FormCheckInput, _extends({}, props, {
|
|
48
|
-
type: type,
|
|
53
|
+
type: type === 'switch' ? 'checkbox' : type,
|
|
49
54
|
ref: ref,
|
|
50
55
|
isValid: isValid,
|
|
51
56
|
isInvalid: isInvalid,
|
|
52
57
|
isStatic: !hasLabel,
|
|
53
|
-
disabled: disabled
|
|
58
|
+
disabled: disabled,
|
|
59
|
+
as: as
|
|
54
60
|
}));
|
|
55
61
|
return React.createElement(FormContext.Provider, {
|
|
56
62
|
value: innerFormContext
|
|
57
63
|
}, React.createElement("div", {
|
|
58
64
|
style: style,
|
|
59
|
-
className: classNames(className,
|
|
65
|
+
className: classNames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
60
66
|
}, children || React.createElement(React.Fragment, null, input, hasLabel && React.createElement(FormCheckLabel, {
|
|
61
67
|
title: title
|
|
62
68
|
}, label), (isValid || isInvalid) && React.createElement(Feedback, {
|
|
@@ -11,9 +11,8 @@ export interface FormCheckInputProps {
|
|
|
11
11
|
innerRef?: React.LegacyRef<this>;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
declare class FormCheckInput
|
|
15
|
-
'input'
|
|
16
|
-
|
|
17
|
-
> {}
|
|
14
|
+
declare class FormCheckInput<
|
|
15
|
+
As extends React.ElementType = 'input'
|
|
16
|
+
> extends BsPrefixComponent<As, FormCheckInputProps> {}
|
|
18
17
|
|
|
19
18
|
export default FormCheckInput;
|
|
@@ -2,30 +2,32 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import React, { useContext } from 'react';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
5
|
import FormContext from './FormContext';
|
|
6
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
7
7
|
var defaultProps = {
|
|
8
8
|
type: 'checkbox'
|
|
9
9
|
};
|
|
10
10
|
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
11
11
|
var id = _ref.id,
|
|
12
12
|
bsPrefix = _ref.bsPrefix,
|
|
13
|
+
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
13
14
|
className = _ref.className,
|
|
14
15
|
isValid = _ref.isValid,
|
|
15
16
|
isInvalid = _ref.isInvalid,
|
|
16
17
|
isStatic = _ref.isStatic,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
_ref$as = _ref.as,
|
|
19
|
+
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
20
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "isStatic", "as"]);
|
|
20
21
|
|
|
21
22
|
var _useContext = useContext(FormContext),
|
|
22
23
|
controlId = _useContext.controlId,
|
|
23
24
|
custom = _useContext.custom;
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
bsPrefix = custom ? useBootstrapPrefix(bsCustomPrefix, 'custom-control-input') : useBootstrapPrefix(bsPrefix, 'form-check-input');
|
|
27
|
+
return React.createElement(Component, _extends({}, props, {
|
|
26
28
|
ref: ref,
|
|
27
29
|
id: id || controlId,
|
|
28
|
-
className: classNames(className,
|
|
30
|
+
className: classNames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
|
|
29
31
|
}));
|
|
30
32
|
});
|
|
31
33
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
File without changes
|
|
@@ -2,29 +2,25 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import React, { useContext } from 'react';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
5
|
import FormContext from './FormContext';
|
|
7
|
-
|
|
8
|
-
type: 'checkbox'
|
|
9
|
-
};
|
|
6
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
10
7
|
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
11
8
|
var bsPrefix = _ref.bsPrefix,
|
|
9
|
+
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
12
10
|
className = _ref.className,
|
|
13
11
|
htmlFor = _ref.htmlFor,
|
|
14
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "htmlFor"]);
|
|
15
|
-
|
|
16
|
-
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-check-label');
|
|
12
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
17
13
|
|
|
18
14
|
var _useContext = useContext(FormContext),
|
|
19
15
|
controlId = _useContext.controlId,
|
|
20
16
|
custom = _useContext.custom;
|
|
21
17
|
|
|
18
|
+
bsPrefix = custom ? useBootstrapPrefix(bsCustomPrefix, 'custom-control-label') : useBootstrapPrefix(bsPrefix, 'form-check-label');
|
|
22
19
|
return React.createElement("label", _extends({}, props, {
|
|
23
20
|
ref: ref,
|
|
24
21
|
htmlFor: htmlFor || controlId,
|
|
25
|
-
className: classNames(className,
|
|
22
|
+
className: classNames(className, bsPrefix)
|
|
26
23
|
}));
|
|
27
24
|
});
|
|
28
25
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
29
|
-
FormCheckLabel.defaultProps = defaultProps;
|
|
30
26
|
export default FormCheckLabel;
|
|
File without changes
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
import Feedback from './Feedback';
|
|
4
|
-
|
|
5
3
|
import { BsPrefixComponent } from './helpers';
|
|
6
4
|
|
|
5
|
+
type FormControlElement =
|
|
6
|
+
| HTMLInputElement
|
|
7
|
+
| HTMLSelectElement
|
|
8
|
+
| HTMLTextAreaElement;
|
|
9
|
+
|
|
7
10
|
export interface FormControlProps {
|
|
8
|
-
innerRef?: React.LegacyRef<
|
|
11
|
+
innerRef?: React.LegacyRef<FormControlElement>;
|
|
9
12
|
size?: 'sm' | 'lg';
|
|
10
13
|
plaintext?: boolean;
|
|
11
14
|
readOnly?: boolean;
|
|
12
15
|
disabled?: boolean;
|
|
13
16
|
value?: string;
|
|
14
|
-
onChange?: React.FormEventHandler<
|
|
17
|
+
onChange?: React.FormEventHandler<FormControlElement>;
|
|
15
18
|
type?: string;
|
|
16
19
|
id?: string;
|
|
17
20
|
isValid?: boolean;
|
|
18
21
|
isInvalid?: boolean;
|
|
19
22
|
}
|
|
20
23
|
|
|
21
|
-
declare class
|
|
24
|
+
declare class FormControl<
|
|
22
25
|
As extends React.ElementType = 'input'
|
|
23
26
|
> extends BsPrefixComponent<As, FormControlProps> {
|
|
24
27
|
static Feedback: typeof Feedback;
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
export default
|
|
30
|
+
export default FormControl;
|
|
File without changes
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
import { BsPrefixComponent } from './helpers';
|
|
4
3
|
|
|
5
4
|
export interface FormGroupProps {
|
|
@@ -7,8 +6,8 @@ export interface FormGroupProps {
|
|
|
7
6
|
controlId?: string;
|
|
8
7
|
}
|
|
9
8
|
|
|
10
|
-
declare class
|
|
9
|
+
declare class FormGroup<
|
|
11
10
|
As extends React.ElementType = 'div'
|
|
12
11
|
> extends BsPrefixComponent<As, FormGroupProps> {}
|
|
13
12
|
|
|
14
|
-
export default
|
|
13
|
+
export default FormGroup;
|
package/{es → esm}/FormGroup.js
RENAMED
|
File without changes
|
|
File without changes
|
package/{es → esm}/FormLabel.js
RENAMED
|
File without changes
|
package/{es → esm}/FormText.d.ts
RENAMED
|
File without changes
|
package/{es → esm}/FormText.js
RENAMED
|
File without changes
|
package/{es → esm}/Image.d.ts
RENAMED
|
File without changes
|
package/esm/Image.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
+
var defaultProps = {
|
|
7
|
+
fluid: false,
|
|
8
|
+
rounded: false,
|
|
9
|
+
roundedCircle: false,
|
|
10
|
+
thumbnail: false
|
|
11
|
+
};
|
|
12
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
13
|
+
var bsPrefix = _ref.bsPrefix,
|
|
14
|
+
className = _ref.className,
|
|
15
|
+
fluid = _ref.fluid,
|
|
16
|
+
rounded = _ref.rounded,
|
|
17
|
+
roundedCircle = _ref.roundedCircle,
|
|
18
|
+
thumbnail = _ref.thumbnail,
|
|
19
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
20
|
+
|
|
21
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
22
|
+
var classes = classNames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
23
|
+
return React.createElement("img", _extends({
|
|
24
|
+
// eslint-disable-line jsx-a11y/alt-text
|
|
25
|
+
ref: ref
|
|
26
|
+
}, props, {
|
|
27
|
+
className: classNames(className, classes)
|
|
28
|
+
}));
|
|
29
|
+
});
|
|
30
|
+
Image.displayName = 'Image';
|
|
31
|
+
Image.defaultProps = defaultProps;
|
|
32
|
+
export default Image;
|
|
File without changes
|
package/{es → esm}/InputGroup.js
RENAMED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import createWithBsPrefix from './
|
|
5
|
+
import createWithBsPrefix from './createWithBsPrefix';
|
|
6
6
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
7
7
|
|
|
8
8
|
/**
|
|
File without changes
|
package/{es → esm}/Jumbotron.js
RENAMED
|
File without changes
|
|
File without changes
|
package/{es → esm}/ListGroup.js
RENAMED
|
@@ -2,12 +2,14 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import warning from 'warning';
|
|
5
6
|
import { useUncontrolled } from 'uncontrollable';
|
|
6
7
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
7
8
|
import AbstractNav from './AbstractNav';
|
|
8
9
|
import ListGroupItem from './ListGroupItem';
|
|
9
10
|
var defaultProps = {
|
|
10
|
-
variant: null
|
|
11
|
+
variant: null,
|
|
12
|
+
horizontal: null
|
|
11
13
|
};
|
|
12
14
|
var ListGroup = React.forwardRef(function (props, ref) {
|
|
13
15
|
var _useUncontrolled = useUncontrolled(props, {
|
|
@@ -16,16 +18,26 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
16
18
|
className = _useUncontrolled.className,
|
|
17
19
|
bsPrefix = _useUncontrolled.bsPrefix,
|
|
18
20
|
variant = _useUncontrolled.variant,
|
|
21
|
+
horizontal = _useUncontrolled.horizontal,
|
|
19
22
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
20
23
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
21
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "as"]);
|
|
24
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
22
25
|
|
|
23
26
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group');
|
|
27
|
+
var horizontalVariant;
|
|
28
|
+
|
|
29
|
+
if (horizontal) {
|
|
30
|
+
horizontalVariant = horizontal === true ? 'horizontal' : "horizontal-" + horizontal;
|
|
31
|
+
} else {
|
|
32
|
+
horizontalVariant = null;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
process.env.NODE_ENV !== "production" ? warning(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
24
36
|
return React.createElement(AbstractNav, _extends({
|
|
25
37
|
ref: ref
|
|
26
38
|
}, controlledProps, {
|
|
27
39
|
as: as,
|
|
28
|
-
className: classNames(className, bsPrefix, variant && bsPrefix + "-" + variant)
|
|
40
|
+
className: classNames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
29
41
|
}));
|
|
30
42
|
});
|
|
31
43
|
ListGroup.defaultProps = defaultProps;
|
|
File without changes
|
|
File without changes
|
package/{es → esm}/Media.d.ts
RENAMED
|
File without changes
|
package/{es → esm}/Media.js
RENAMED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import createWithBsPrefix from './
|
|
5
|
+
import createWithBsPrefix from './createWithBsPrefix';
|
|
6
6
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
7
7
|
var Media = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
8
8
|
function (_ref, ref) {
|
package/{es → esm}/Modal.d.ts
RENAMED
|
@@ -21,9 +21,11 @@ export interface ModalProps extends TransitionCallbacks {
|
|
|
21
21
|
enforceFocus?: boolean;
|
|
22
22
|
restoreFocus?: boolean;
|
|
23
23
|
show?: boolean;
|
|
24
|
+
onShow?: () => void;
|
|
24
25
|
onHide?: () => void;
|
|
25
26
|
container?: any;
|
|
26
27
|
scrollable?: boolean;
|
|
28
|
+
onEscapeKeyDown?: () => void;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
declare class Modal<
|
package/{es → esm}/Modal.js
RENAMED
|
@@ -2,21 +2,22 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import
|
|
5
|
+
import addEventListener from 'dom-helpers/addEventListener';
|
|
6
|
+
import canUseDOM from 'dom-helpers/canUseDOM';
|
|
6
7
|
import ownerDocument from 'dom-helpers/ownerDocument';
|
|
7
|
-
import
|
|
8
|
-
import getScrollbarSize from 'dom-helpers/
|
|
8
|
+
import removeEventListener from 'dom-helpers/removeEventListener';
|
|
9
|
+
import getScrollbarSize from 'dom-helpers/scrollbarSize';
|
|
9
10
|
import React from 'react';
|
|
10
11
|
import BaseModal from 'react-overlays/Modal';
|
|
12
|
+
import BootstrapModalManager from './BootstrapModalManager';
|
|
11
13
|
import Fade from './Fade';
|
|
12
14
|
import Body from './ModalBody';
|
|
15
|
+
import ModalContext from './ModalContext';
|
|
13
16
|
import ModalDialog from './ModalDialog';
|
|
14
17
|
import Footer from './ModalFooter';
|
|
15
18
|
import Header from './ModalHeader';
|
|
16
19
|
import Title from './ModalTitle';
|
|
17
|
-
import BootstrapModalManager from './utils/BootstrapModalManager';
|
|
18
20
|
import { createBootstrapComponent } from './ThemeProvider';
|
|
19
|
-
import ModalContext from './ModalContext';
|
|
20
21
|
var defaultProps = {
|
|
21
22
|
show: false,
|
|
22
23
|
backdrop: true,
|
|
@@ -112,7 +113,7 @@ function (_React$Component) {
|
|
|
112
113
|
|
|
113
114
|
if (_this.props.onEntering) (_this$props2 = _this.props).onEntering.apply(_this$props2, [node].concat(args)); // FIXME: This should work even when animation is disabled.
|
|
114
115
|
|
|
115
|
-
|
|
116
|
+
addEventListener(window, 'resize', _this.handleWindowResize);
|
|
116
117
|
};
|
|
117
118
|
|
|
118
119
|
_this.handleExited = function (node) {
|
|
@@ -126,7 +127,7 @@ function (_React$Component) {
|
|
|
126
127
|
|
|
127
128
|
if (_this.props.onExited) (_this$props3 = _this.props).onExited.apply(_this$props3, args); // FIXME: This should work even when animation is disabled.
|
|
128
129
|
|
|
129
|
-
|
|
130
|
+
removeEventListener(window, 'resize', _this.handleWindowResize);
|
|
130
131
|
};
|
|
131
132
|
|
|
132
133
|
_this.handleWindowResize = function () {
|
|
@@ -150,7 +151,7 @@ function (_React$Component) {
|
|
|
150
151
|
|
|
151
152
|
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
152
153
|
// Clean up the listener if we need to.
|
|
153
|
-
|
|
154
|
+
removeEventListener(window, 'resize', this.handleWindowResize);
|
|
154
155
|
};
|
|
155
156
|
|
|
156
157
|
_proto.updateDialogStyle = function updateDialogStyle(node) {
|
|
File without changes
|
package/esm/ModalBody.js
ADDED
|
File without changes
|
|
File without changes
|
|
@@ -18,7 +18,7 @@ var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
|
18
18
|
ref: ref,
|
|
19
19
|
className: classNames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
20
20
|
}), React.createElement("div", {
|
|
21
|
-
className:
|
|
21
|
+
className: bsPrefix + "-content"
|
|
22
22
|
}, children));
|
|
23
23
|
});
|
|
24
24
|
ModalDialog.displayName = 'ModalDialog';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{es → esm}/ModalTitle.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import createWithBsPrefix from './
|
|
2
|
-
import divWithClassName from './
|
|
1
|
+
import createWithBsPrefix from './createWithBsPrefix';
|
|
2
|
+
import divWithClassName from './divWithClassName';
|
|
3
3
|
var DivStyledAsH4 = divWithClassName('h4');
|
|
4
4
|
export default createWithBsPrefix('modal-title', {
|
|
5
5
|
Component: DivStyledAsH4
|
package/{es → esm}/Nav.d.ts
RENAMED
|
File without changes
|
package/{es → esm}/Nav.js
RENAMED
|
File without changes
|
package/{es → esm}/NavContext.js
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import Dropdown from './Dropdown';
|
|
6
|
+
import NavItem from './NavItem';
|
|
7
|
+
import NavLink from './NavLink';
|
|
8
|
+
var propTypes = {
|
|
9
|
+
/**
|
|
10
|
+
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
11
|
+
* @type {string|number}
|
|
12
|
+
* @required
|
|
13
|
+
*/
|
|
14
|
+
id: PropTypes.any,
|
|
15
|
+
|
|
16
|
+
/** An `onClick` handler passed to the Toggle component */
|
|
17
|
+
onClick: PropTypes.func,
|
|
18
|
+
|
|
19
|
+
/** The content of the non-toggle Button. */
|
|
20
|
+
title: PropTypes.node.isRequired,
|
|
21
|
+
|
|
22
|
+
/** Disables the toggle NavLink */
|
|
23
|
+
disabled: PropTypes.bool,
|
|
24
|
+
|
|
25
|
+
/** Style the toggle NavLink as active */
|
|
26
|
+
active: PropTypes.bool,
|
|
27
|
+
|
|
28
|
+
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
29
|
+
menuRole: PropTypes.string,
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Which event when fired outside the component will cause it to be closed.
|
|
33
|
+
*
|
|
34
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
35
|
+
*/
|
|
36
|
+
rootCloseEvent: PropTypes.string,
|
|
37
|
+
|
|
38
|
+
/** @ignore */
|
|
39
|
+
bsPrefix: PropTypes.string
|
|
40
|
+
};
|
|
41
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
42
|
+
var id = _ref.id,
|
|
43
|
+
title = _ref.title,
|
|
44
|
+
children = _ref.children,
|
|
45
|
+
bsPrefix = _ref.bsPrefix,
|
|
46
|
+
rootCloseEvent = _ref.rootCloseEvent,
|
|
47
|
+
menuRole = _ref.menuRole,
|
|
48
|
+
disabled = _ref.disabled,
|
|
49
|
+
active = _ref.active,
|
|
50
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active"]);
|
|
51
|
+
|
|
52
|
+
return React.createElement(Dropdown, _extends({
|
|
53
|
+
ref: ref
|
|
54
|
+
}, props, {
|
|
55
|
+
as: NavItem
|
|
56
|
+
}), React.createElement(Dropdown.Toggle, {
|
|
57
|
+
id: id,
|
|
58
|
+
eventKey: null,
|
|
59
|
+
active: active,
|
|
60
|
+
disabled: disabled,
|
|
61
|
+
childBsPrefix: bsPrefix,
|
|
62
|
+
as: NavLink
|
|
63
|
+
}, title), React.createElement(Dropdown.Menu, {
|
|
64
|
+
role: menuRole,
|
|
65
|
+
rootCloseEvent: rootCloseEvent
|
|
66
|
+
}, children));
|
|
67
|
+
});
|
|
68
|
+
NavDropdown.displayName = 'NavDropdown';
|
|
69
|
+
NavDropdown.propTypes = propTypes;
|
|
70
|
+
NavDropdown.Item = Dropdown.Item;
|
|
71
|
+
NavDropdown.Divider = Dropdown.Divider;
|
|
72
|
+
NavDropdown.Header = Dropdown.Header;
|
|
73
|
+
export default NavDropdown;
|
package/{es → esm}/NavItem.d.ts
RENAMED
|
File without changes
|
package/{es → esm}/NavItem.js
RENAMED
|
File without changes
|