react-bootstrap 3.0.0-beta.1 → 3.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/cjs/AbstractModalHeader.d.ts +1 -1
- package/cjs/AbstractModalHeader.js +2 -2
- package/cjs/Accordion.d.ts +6 -6
- package/cjs/Accordion.js +7 -7
- package/cjs/AccordionBody.d.ts +1 -1
- package/cjs/AccordionBody.js +3 -3
- package/cjs/AccordionButton.js +4 -4
- package/cjs/AccordionCollapse.d.ts +1 -1
- package/cjs/AccordionCollapse.js +3 -3
- package/cjs/AccordionHeader.d.ts +4 -0
- package/cjs/AccordionHeader.js +4 -2
- package/cjs/AccordionItem.js +2 -2
- package/cjs/Alert.d.ts +5 -5
- package/cjs/Alert.js +5 -5
- package/cjs/AlertHeading.js +2 -2
- package/cjs/AlertLink.js +1 -1
- package/cjs/Badge.d.ts +1 -1
- package/cjs/Badge.js +1 -1
- package/cjs/BootstrapModalManager.js +2 -4
- package/cjs/Breadcrumb.d.ts +1 -1
- package/cjs/Breadcrumb.js +2 -2
- package/cjs/BreadcrumbItem.js +1 -1
- package/cjs/Button.d.ts +1 -1
- package/cjs/Button.js +1 -1
- package/cjs/ButtonGroup.js +1 -1
- package/cjs/ButtonToolbar.js +1 -1
- package/cjs/Card.d.ts +10 -10
- package/cjs/Card.js +10 -10
- package/cjs/CardBody.js +1 -1
- package/cjs/CardFooter.js +1 -1
- package/cjs/CardGroup.js +1 -1
- package/cjs/CardHeader.js +2 -2
- package/cjs/CardImg.js +1 -1
- package/cjs/CardImgOverlay.js +1 -1
- package/cjs/CardLink.js +1 -1
- package/cjs/CardSubtitle.js +2 -2
- package/cjs/CardText.js +1 -1
- package/cjs/CardTitle.js +2 -2
- package/cjs/Carousel.d.ts +2 -2
- package/cjs/Carousel.js +7 -7
- package/cjs/CarouselCaption.js +1 -1
- package/cjs/CarouselItem.js +1 -1
- package/cjs/Col.js +2 -1
- package/cjs/Collapse.d.ts +2 -2
- package/cjs/Collapse.js +8 -9
- package/cjs/Container.js +1 -1
- package/cjs/Dropdown.d.ts +7 -7
- package/cjs/Dropdown.js +9 -9
- package/cjs/DropdownButton.d.ts +3 -3
- package/cjs/DropdownButton.js +3 -3
- package/cjs/DropdownContext.d.ts +1 -1
- package/cjs/DropdownDivider.js +1 -1
- package/cjs/DropdownHeader.js +1 -1
- package/cjs/DropdownItem.js +1 -1
- package/cjs/DropdownItemText.js +1 -1
- package/cjs/DropdownMenu.d.ts +3 -3
- package/cjs/DropdownMenu.js +5 -5
- package/cjs/DropdownToggle.d.ts +1 -1
- package/cjs/DropdownToggle.js +3 -3
- package/cjs/Fade.d.ts +2 -2
- package/cjs/Fade.js +5 -6
- package/cjs/Figure.d.ts +2 -2
- package/cjs/Figure.js +3 -3
- package/cjs/FigureCaption.js +1 -1
- package/cjs/FigureImage.d.ts +1 -1
- package/cjs/FigureImage.js +1 -1
- package/cjs/FloatingLabel.d.ts +1 -1
- package/cjs/FloatingLabel.js +2 -2
- package/cjs/Form.d.ts +21 -21
- package/cjs/Form.js +10 -10
- package/cjs/FormCheck.d.ts +3 -3
- package/cjs/FormCheck.js +6 -6
- package/cjs/FormCheckInput.js +2 -2
- package/cjs/FormCheckLabel.js +2 -2
- package/cjs/FormControl.d.ts +1 -1
- package/cjs/FormControl.js +3 -3
- package/cjs/FormFloating.js +1 -1
- package/cjs/FormGroup.js +1 -1
- package/cjs/FormLabel.d.ts +1 -1
- package/cjs/FormLabel.js +3 -3
- package/cjs/FormRange.js +2 -2
- package/cjs/FormSelect.js +2 -2
- package/cjs/FormText.js +1 -1
- package/cjs/Image.js +1 -1
- package/cjs/InputGroup.d.ts +2 -2
- package/cjs/InputGroup.js +4 -4
- package/cjs/InputGroupText.js +1 -1
- package/cjs/ListGroup.d.ts +2 -2
- package/cjs/ListGroup.js +2 -2
- package/cjs/ListGroupItem.d.ts +1 -1
- package/cjs/ListGroupItem.js +1 -1
- package/cjs/Modal.d.ts +6 -6
- package/cjs/Modal.js +12 -14
- package/cjs/ModalBody.js +1 -1
- package/cjs/ModalDialog.js +1 -1
- package/cjs/ModalFooter.js +1 -1
- package/cjs/ModalHeader.d.ts +1 -1
- package/cjs/ModalHeader.js +2 -2
- package/cjs/ModalTitle.js +2 -2
- package/cjs/Nav.d.ts +3 -3
- package/cjs/Nav.js +5 -5
- package/cjs/NavDropdown.d.ts +6 -6
- package/cjs/NavDropdown.js +3 -3
- package/cjs/NavItem.js +1 -1
- package/cjs/NavLink.d.ts +1 -1
- package/cjs/NavLink.js +1 -1
- package/cjs/Navbar.d.ts +6 -6
- package/cjs/Navbar.js +7 -7
- package/cjs/NavbarBrand.js +1 -1
- package/cjs/NavbarCollapse.d.ts +1 -1
- package/cjs/NavbarCollapse.js +3 -3
- package/cjs/NavbarOffcanvas.d.ts +1 -1
- package/cjs/NavbarOffcanvas.js +2 -2
- package/cjs/NavbarText.js +1 -1
- package/cjs/NavbarToggle.js +2 -2
- package/cjs/Offcanvas.d.ts +4 -4
- package/cjs/Offcanvas.js +8 -8
- package/cjs/OffcanvasBody.js +1 -1
- package/cjs/OffcanvasHeader.d.ts +1 -1
- package/cjs/OffcanvasHeader.js +2 -2
- package/cjs/OffcanvasTitle.js +2 -2
- package/cjs/OffcanvasToggling.d.ts +2 -2
- package/cjs/OffcanvasToggling.js +6 -7
- package/cjs/Overlay.d.ts +2 -2
- package/cjs/Overlay.js +2 -2
- package/cjs/OverlayTrigger.d.ts +2 -2
- package/cjs/OverlayTrigger.js +2 -3
- package/cjs/Pagination.d.ts +6 -6
- package/cjs/Pagination.js +2 -2
- package/cjs/Placeholder.d.ts +2 -2
- package/cjs/Placeholder.js +2 -2
- package/cjs/PlaceholderButton.d.ts +2 -2
- package/cjs/PlaceholderButton.js +2 -2
- package/cjs/Popover.d.ts +3 -3
- package/cjs/Popover.js +5 -5
- package/cjs/PopoverBody.js +1 -1
- package/cjs/PopoverHeader.js +1 -1
- package/cjs/ProgressBar.js +2 -2
- package/cjs/Ratio.js +1 -1
- package/cjs/Row.js +1 -1
- package/cjs/Spinner.d.ts +1 -1
- package/cjs/Spinner.js +1 -1
- package/cjs/SplitButton.d.ts +2 -2
- package/cjs/SplitButton.js +3 -3
- package/cjs/Stack.d.ts +2 -2
- package/cjs/Stack.js +2 -2
- package/cjs/Switch.d.ts +5 -5
- package/cjs/Switch.js +1 -1
- package/cjs/Tab.d.ts +3 -3
- package/cjs/Tab.js +3 -3
- package/cjs/TabContainer.d.ts +1 -1
- package/cjs/TabContainer.js +1 -1
- package/cjs/TabContent.js +1 -1
- package/cjs/TabPane.d.ts +2 -2
- package/cjs/TabPane.js +3 -3
- package/cjs/Table.js +1 -1
- package/cjs/Tabs.d.ts +2 -2
- package/cjs/Tabs.js +7 -7
- package/cjs/Toast.d.ts +3 -3
- package/cjs/Toast.js +5 -5
- package/cjs/ToastBody.js +1 -1
- package/cjs/ToastContainer.js +1 -1
- package/cjs/ToastFade.d.ts +2 -2
- package/cjs/ToastFade.js +3 -4
- package/cjs/ToastHeader.d.ts +1 -1
- package/cjs/ToastHeader.js +3 -3
- package/cjs/ToggleButton.d.ts +1 -1
- package/cjs/ToggleButton.js +2 -2
- package/cjs/ToggleButtonGroup.d.ts +2 -2
- package/cjs/ToggleButtonGroup.js +4 -4
- package/cjs/Tooltip.d.ts +1 -1
- package/cjs/Tooltip.js +3 -3
- package/cjs/TransitionWrapper.d.ts +4 -4
- package/cjs/TransitionWrapper.js +2 -2
- package/cjs/createUtilityClasses.js +1 -1
- package/cjs/createWithBsPrefix.js +1 -1
- package/cjs/getTabTransitionComponent.d.ts +1 -1
- package/cjs/getTabTransitionComponent.js +1 -1
- package/cjs/index.d.ts +217 -217
- package/cjs/index.js +111 -111
- package/cjs/transitionEndListener.js +3 -4
- package/cjs/types.d.ts +1 -1
- package/cjs/useAccordionButton.js +1 -1
- package/cjs/useCol.d.ts +1 -1
- package/cjs/useCol.js +1 -1
- package/cjs/useOverlayOffset.js +5 -6
- package/cjs/usePlaceholder.d.ts +2 -2
- package/cjs/usePlaceholder.js +2 -2
- package/lib/AbstractModalHeader.d.ts +1 -1
- package/lib/AbstractModalHeader.js +2 -2
- package/lib/Accordion.d.ts +6 -6
- package/lib/Accordion.js +7 -7
- package/lib/AccordionBody.d.ts +1 -1
- package/lib/AccordionBody.js +3 -3
- package/lib/AccordionButton.js +4 -4
- package/lib/AccordionCollapse.d.ts +1 -1
- package/lib/AccordionCollapse.js +3 -3
- package/lib/AccordionHeader.d.ts +4 -0
- package/lib/AccordionHeader.js +4 -2
- package/lib/AccordionItem.js +2 -2
- package/lib/Alert.d.ts +5 -5
- package/lib/Alert.js +5 -5
- package/lib/AlertHeading.js +2 -2
- package/lib/AlertLink.js +1 -1
- package/lib/Badge.d.ts +1 -1
- package/lib/Badge.js +1 -1
- package/lib/BootstrapModalManager.js +2 -4
- package/lib/Breadcrumb.d.ts +1 -1
- package/lib/Breadcrumb.js +2 -2
- package/lib/BreadcrumbItem.js +1 -1
- package/lib/Button.d.ts +1 -1
- package/lib/Button.js +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/ButtonToolbar.js +1 -1
- package/lib/Card.d.ts +10 -10
- package/lib/Card.js +10 -10
- package/lib/CardBody.js +1 -1
- package/lib/CardFooter.js +1 -1
- package/lib/CardGroup.js +1 -1
- package/lib/CardHeader.js +2 -2
- package/lib/CardImg.js +1 -1
- package/lib/CardImgOverlay.js +1 -1
- package/lib/CardLink.js +1 -1
- package/lib/CardSubtitle.js +2 -2
- package/lib/CardText.js +1 -1
- package/lib/CardTitle.js +2 -2
- package/lib/Carousel.d.ts +2 -2
- package/lib/Carousel.js +7 -7
- package/lib/CarouselCaption.js +1 -1
- package/lib/CarouselItem.js +1 -1
- package/lib/Col.js +3 -1
- package/lib/Collapse.d.ts +2 -2
- package/lib/Collapse.js +8 -9
- package/lib/Container.js +1 -1
- package/lib/Dropdown.d.ts +7 -7
- package/lib/Dropdown.js +9 -9
- package/lib/DropdownButton.d.ts +3 -3
- package/lib/DropdownButton.js +3 -3
- package/lib/DropdownContext.d.ts +1 -1
- package/lib/DropdownDivider.js +1 -1
- package/lib/DropdownHeader.js +1 -1
- package/lib/DropdownItem.js +1 -1
- package/lib/DropdownItemText.js +1 -1
- package/lib/DropdownMenu.d.ts +3 -3
- package/lib/DropdownMenu.js +5 -5
- package/lib/DropdownToggle.d.ts +1 -1
- package/lib/DropdownToggle.js +3 -3
- package/lib/Fade.d.ts +2 -2
- package/lib/Fade.js +5 -6
- package/lib/Figure.d.ts +2 -2
- package/lib/Figure.js +3 -3
- package/lib/FigureCaption.js +1 -1
- package/lib/FigureImage.d.ts +1 -1
- package/lib/FigureImage.js +1 -1
- package/lib/FloatingLabel.d.ts +1 -1
- package/lib/FloatingLabel.js +2 -2
- package/lib/Form.d.ts +21 -21
- package/lib/Form.js +10 -10
- package/lib/FormCheck.d.ts +3 -3
- package/lib/FormCheck.js +6 -6
- package/lib/FormCheckInput.js +2 -2
- package/lib/FormCheckLabel.js +2 -2
- package/lib/FormControl.d.ts +1 -1
- package/lib/FormControl.js +3 -3
- package/lib/FormFloating.js +1 -1
- package/lib/FormGroup.js +1 -1
- package/lib/FormLabel.d.ts +1 -1
- package/lib/FormLabel.js +3 -3
- package/lib/FormRange.js +2 -2
- package/lib/FormSelect.js +2 -2
- package/lib/FormText.js +1 -1
- package/lib/Image.js +1 -1
- package/lib/InputGroup.d.ts +2 -2
- package/lib/InputGroup.js +4 -4
- package/lib/InputGroupText.js +1 -1
- package/lib/ListGroup.d.ts +2 -2
- package/lib/ListGroup.js +2 -2
- package/lib/ListGroupItem.d.ts +1 -1
- package/lib/ListGroupItem.js +1 -1
- package/lib/Modal.d.ts +6 -6
- package/lib/Modal.js +12 -14
- package/lib/ModalBody.js +1 -1
- package/lib/ModalDialog.js +1 -1
- package/lib/ModalFooter.js +1 -1
- package/lib/ModalHeader.d.ts +1 -1
- package/lib/ModalHeader.js +2 -2
- package/lib/ModalTitle.js +2 -2
- package/lib/Nav.d.ts +3 -3
- package/lib/Nav.js +5 -5
- package/lib/NavDropdown.d.ts +6 -6
- package/lib/NavDropdown.js +3 -3
- package/lib/NavItem.js +1 -1
- package/lib/NavLink.d.ts +1 -1
- package/lib/NavLink.js +1 -1
- package/lib/Navbar.d.ts +6 -6
- package/lib/Navbar.js +7 -7
- package/lib/NavbarBrand.js +1 -1
- package/lib/NavbarCollapse.d.ts +1 -1
- package/lib/NavbarCollapse.js +3 -3
- package/lib/NavbarOffcanvas.d.ts +1 -1
- package/lib/NavbarOffcanvas.js +2 -2
- package/lib/NavbarText.js +1 -1
- package/lib/NavbarToggle.js +2 -2
- package/lib/Offcanvas.d.ts +4 -4
- package/lib/Offcanvas.js +8 -8
- package/lib/OffcanvasBody.js +1 -1
- package/lib/OffcanvasHeader.d.ts +1 -1
- package/lib/OffcanvasHeader.js +2 -2
- package/lib/OffcanvasTitle.js +2 -2
- package/lib/OffcanvasToggling.d.ts +2 -2
- package/lib/OffcanvasToggling.js +6 -7
- package/lib/Overlay.d.ts +2 -2
- package/lib/Overlay.js +2 -2
- package/lib/OverlayTrigger.d.ts +2 -2
- package/lib/OverlayTrigger.js +2 -3
- package/lib/Pagination.d.ts +6 -6
- package/lib/Pagination.js +2 -2
- package/lib/Placeholder.d.ts +2 -2
- package/lib/Placeholder.js +2 -2
- package/lib/PlaceholderButton.d.ts +2 -2
- package/lib/PlaceholderButton.js +2 -2
- package/lib/Popover.d.ts +3 -3
- package/lib/Popover.js +5 -5
- package/lib/PopoverBody.js +1 -1
- package/lib/PopoverHeader.js +1 -1
- package/lib/ProgressBar.js +2 -2
- package/lib/Ratio.js +1 -1
- package/lib/Row.js +1 -1
- package/lib/Spinner.d.ts +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/SplitButton.d.ts +2 -2
- package/lib/SplitButton.js +3 -3
- package/lib/Stack.d.ts +2 -2
- package/lib/Stack.js +2 -2
- package/lib/Switch.d.ts +5 -5
- package/lib/Switch.js +1 -1
- package/lib/Tab.d.ts +3 -3
- package/lib/Tab.js +3 -3
- package/lib/TabContainer.d.ts +1 -1
- package/lib/TabContainer.js +1 -1
- package/lib/TabContent.js +1 -1
- package/lib/TabPane.d.ts +2 -2
- package/lib/TabPane.js +3 -3
- package/lib/Table.js +1 -1
- package/lib/Tabs.d.ts +2 -2
- package/lib/Tabs.js +7 -7
- package/lib/Toast.d.ts +3 -3
- package/lib/Toast.js +5 -5
- package/lib/ToastBody.js +1 -1
- package/lib/ToastContainer.js +1 -1
- package/lib/ToastFade.d.ts +2 -2
- package/lib/ToastFade.js +3 -4
- package/lib/ToastHeader.d.ts +1 -1
- package/lib/ToastHeader.js +3 -3
- package/lib/ToggleButton.d.ts +1 -1
- package/lib/ToggleButton.js +2 -2
- package/lib/ToggleButtonGroup.d.ts +2 -2
- package/lib/ToggleButtonGroup.js +4 -4
- package/lib/Tooltip.d.ts +1 -1
- package/lib/Tooltip.js +3 -3
- package/lib/TransitionWrapper.d.ts +4 -4
- package/lib/TransitionWrapper.js +1 -1
- package/lib/createUtilityClasses.js +1 -1
- package/lib/createWithBsPrefix.js +1 -1
- package/lib/getTabTransitionComponent.d.ts +1 -1
- package/lib/getTabTransitionComponent.js +1 -1
- package/lib/index.d.ts +217 -217
- package/lib/index.js +111 -111
- package/lib/transitionEndListener.js +3 -4
- package/lib/types.d.ts +1 -1
- package/lib/useAccordionButton.js +1 -1
- package/lib/useCol.d.ts +1 -1
- package/lib/useCol.js +1 -1
- package/lib/useOverlayOffset.js +5 -6
- package/lib/usePlaceholder.d.ts +2 -2
- package/lib/usePlaceholder.js +2 -2
- package/package.json +6 -5
- package/lib/package.json +0 -1
package/lib/DropdownMenu.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { UseDropdownMenuOptions } from '@restart/ui/DropdownMenu';
|
|
3
3
|
import type { DynamicRefForwardingComponent } from '@restart/ui/types';
|
|
4
|
-
import { type DropDirection } from './DropdownContext';
|
|
5
|
-
import type { AlignType } from './types';
|
|
4
|
+
import { type DropDirection } from './DropdownContext.js';
|
|
5
|
+
import type { AlignType } from './types.js';
|
|
6
6
|
export type DropdownMenuVariant = 'dark' | string;
|
|
7
7
|
export interface DropdownMenuProps extends React.HTMLAttributes<HTMLElement> {
|
|
8
8
|
/**
|
|
@@ -56,6 +56,6 @@ export interface DropdownMenuProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
56
56
|
*/
|
|
57
57
|
variant?: DropdownMenuVariant | undefined;
|
|
58
58
|
}
|
|
59
|
-
export declare function getDropdownMenuPlacement(alignEnd: boolean, dropDirection?: DropDirection, isRTL?: boolean): "
|
|
59
|
+
export declare function getDropdownMenuPlacement(alignEnd: boolean, dropDirection?: DropDirection, isRTL?: boolean): "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
|
60
60
|
declare const DropdownMenu: DynamicRefForwardingComponent<'div', DropdownMenuProps>;
|
|
61
61
|
export default DropdownMenu;
|
package/lib/DropdownMenu.js
CHANGED
|
@@ -7,11 +7,11 @@ import { useDropdownMenu } from '@restart/ui/DropdownMenu';
|
|
|
7
7
|
import useIsomorphicEffect from '@restart/hooks/useIsomorphicEffect';
|
|
8
8
|
import useMergedRefs from '@restart/hooks/useMergedRefs';
|
|
9
9
|
import warning from 'warning';
|
|
10
|
-
import DropdownContext from './DropdownContext';
|
|
11
|
-
import InputGroupContext from './InputGroupContext';
|
|
12
|
-
import NavbarContext from './NavbarContext';
|
|
13
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
14
|
-
import useWrappedRefWithWarning from './useWrappedRefWithWarning';
|
|
10
|
+
import DropdownContext from './DropdownContext.js';
|
|
11
|
+
import InputGroupContext from './InputGroupContext.js';
|
|
12
|
+
import NavbarContext from './NavbarContext.js';
|
|
13
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
14
|
+
import useWrappedRefWithWarning from './useWrappedRefWithWarning.js';
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
export function getDropdownMenuPlacement(alignEnd, dropDirection, isRTL) {
|
|
17
17
|
const topStart = isRTL ? 'top-end' : 'top-start';
|
package/lib/DropdownToggle.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DynamicRefForwardingComponent } from '@restart/ui/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { type ButtonProps, type CommonButtonProps } from './Button';
|
|
3
|
+
import { type ButtonProps, type CommonButtonProps } from './Button.js';
|
|
4
4
|
export interface DropdownToggleProps extends Omit<ButtonProps, 'as'> {
|
|
5
5
|
/**
|
|
6
6
|
* Element used to render the component.
|
package/lib/DropdownToggle.js
CHANGED
|
@@ -6,9 +6,9 @@ import { useDropdownToggle } from '@restart/ui/DropdownToggle';
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { useContext } from 'react';
|
|
9
|
-
import Button from './Button';
|
|
10
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
11
|
-
import useWrappedRefWithWarning from './useWrappedRefWithWarning';
|
|
9
|
+
import Button from './Button.js';
|
|
10
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
11
|
+
import useWrappedRefWithWarning from './useWrappedRefWithWarning.js';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
const DropdownToggle = /*#__PURE__*/React.forwardRef(({
|
|
14
14
|
bsPrefix,
|
package/lib/Fade.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import Transition from 'react-transition-group
|
|
3
|
-
import type { TransitionCallbacks } from './types';
|
|
2
|
+
import { Transition } from 'react-transition-group';
|
|
3
|
+
import type { TransitionCallbacks } from './types.js';
|
|
4
4
|
export interface FadeProps extends TransitionCallbacks {
|
|
5
5
|
className?: string;
|
|
6
6
|
/**
|
package/lib/Fade.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
|
-
import { ENTERED, ENTERING } from 'react-transition-group/Transition';
|
|
5
4
|
import { getChildRef } from '@restart/ui/utils';
|
|
6
|
-
import transitionEndListener from './transitionEndListener';
|
|
7
|
-
import triggerBrowserReflow from './triggerBrowserReflow';
|
|
8
|
-
import TransitionWrapper from './TransitionWrapper';
|
|
5
|
+
import transitionEndListener from './transitionEndListener.js';
|
|
6
|
+
import triggerBrowserReflow from './triggerBrowserReflow.js';
|
|
7
|
+
import TransitionWrapper from './TransitionWrapper.js';
|
|
9
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
9
|
const fadeStyles = {
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
entering: 'show',
|
|
11
|
+
entered: 'show'
|
|
13
12
|
};
|
|
14
13
|
const Fade = /*#__PURE__*/React.forwardRef(({
|
|
15
14
|
className,
|
package/lib/Figure.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface FigureProps extends React.AnchorHTMLAttributes<HTMLElement> {
|
|
|
11
11
|
bsPrefix?: string | undefined;
|
|
12
12
|
}
|
|
13
13
|
declare const _default: DynamicRefForwardingComponent<"figure", FigureProps> & {
|
|
14
|
-
Image: React.ForwardRefExoticComponent<import("./Image").ImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
15
|
-
Caption: DynamicRefForwardingComponent<"figcaption", import("./FigureCaption").FigureCaptionProps>;
|
|
14
|
+
Image: React.ForwardRefExoticComponent<import("./Image.js").ImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
15
|
+
Caption: DynamicRefForwardingComponent<"figcaption", import("./FigureCaption.js").FigureCaptionProps>;
|
|
16
16
|
};
|
|
17
17
|
export default _default;
|
package/lib/Figure.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import FigureImage from './FigureImage';
|
|
6
|
-
import FigureCaption from './FigureCaption';
|
|
7
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
5
|
+
import FigureImage from './FigureImage.js';
|
|
6
|
+
import FigureCaption from './FigureCaption.js';
|
|
7
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const Figure = /*#__PURE__*/React.forwardRef(({
|
|
10
10
|
className,
|
package/lib/FigureCaption.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const FigureCaption = /*#__PURE__*/React.forwardRef(({
|
|
8
8
|
className,
|
package/lib/FigureImage.d.ts
CHANGED
package/lib/FigureImage.js
CHANGED
package/lib/FloatingLabel.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { DynamicRefForwardingComponent } from '@restart/ui/types';
|
|
3
|
-
import { type FormGroupProps } from './FormGroup';
|
|
3
|
+
import { type FormGroupProps } from './FormGroup.js';
|
|
4
4
|
export interface FloatingLabelProps extends FormGroupProps {
|
|
5
5
|
/**
|
|
6
6
|
* Element used to render the component.
|
package/lib/FloatingLabel.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import FormGroup from './FormGroup';
|
|
6
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
5
|
+
import FormGroup from './FormGroup.js';
|
|
6
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
const FloatingLabel = /*#__PURE__*/React.forwardRef(({
|
|
9
9
|
bsPrefix,
|
package/lib/Form.d.ts
CHANGED
|
@@ -12,18 +12,18 @@ export interface FormProps extends React.FormHTMLAttributes<HTMLFormElement> {
|
|
|
12
12
|
validated?: boolean;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
|
|
15
|
-
Group: DynamicRefForwardingComponent<"div", import("./FormGroup").FormGroupProps>;
|
|
16
|
-
Control: DynamicRefForwardingComponent<"input", import("./FormControl").FormControlProps> & {
|
|
17
|
-
Feedback: DynamicRefForwardingComponent<"div", import("./Feedback").FeedbackProps>;
|
|
15
|
+
Group: DynamicRefForwardingComponent<"div", import("./FormGroup.js").FormGroupProps>;
|
|
16
|
+
Control: DynamicRefForwardingComponent<"input", import("./FormControl.js").FormControlProps> & {
|
|
17
|
+
Feedback: DynamicRefForwardingComponent<"div", import("./Feedback.js").FeedbackProps>;
|
|
18
18
|
};
|
|
19
|
-
Floating: DynamicRefForwardingComponent<"div", import("./FormFloating").FormFloatingProps>;
|
|
20
|
-
Check: DynamicRefForwardingComponent<"input", import("./FormCheck").FormCheckProps> & {
|
|
21
|
-
Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
|
|
22
|
-
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
19
|
+
Floating: DynamicRefForwardingComponent<"div", import("./FormFloating.js").FormFloatingProps>;
|
|
20
|
+
Check: DynamicRefForwardingComponent<"input", import("./FormCheck.js").FormCheckProps> & {
|
|
21
|
+
Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput.js").FormCheckInputProps>;
|
|
22
|
+
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel.js").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
23
23
|
};
|
|
24
|
-
Switch: DynamicRefForwardingComponent<DynamicRefForwardingComponent<"input", import("./FormCheck").FormCheckProps> & {
|
|
25
|
-
Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
|
|
26
|
-
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
24
|
+
Switch: DynamicRefForwardingComponent<DynamicRefForwardingComponent<"input", import("./FormCheck.js").FormCheckProps> & {
|
|
25
|
+
Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput.js").FormCheckInputProps>;
|
|
26
|
+
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel.js").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
27
27
|
}, {
|
|
28
28
|
"aria-label"?: string | undefined | undefined;
|
|
29
29
|
disabled?: boolean | undefined | undefined;
|
|
@@ -319,11 +319,11 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
|
|
|
319
319
|
reverse?: boolean | undefined | undefined;
|
|
320
320
|
list?: string | undefined | undefined;
|
|
321
321
|
bsPrefix?: string | undefined | undefined;
|
|
322
|
-
height?: number | string | undefined | undefined;
|
|
323
|
-
width?: number | string | undefined | undefined;
|
|
324
322
|
label?: React.ReactNode;
|
|
325
|
-
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
326
323
|
pattern?: string | undefined | undefined;
|
|
324
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
325
|
+
height?: number | string | undefined | undefined;
|
|
326
|
+
width?: number | string | undefined | undefined;
|
|
327
327
|
size?: number | undefined | undefined;
|
|
328
328
|
inline?: boolean | undefined | undefined;
|
|
329
329
|
multiple?: boolean | undefined | undefined;
|
|
@@ -346,15 +346,15 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
|
|
|
346
346
|
required?: boolean | undefined | undefined;
|
|
347
347
|
bsSwitchPrefix?: string | undefined | undefined;
|
|
348
348
|
feedbackTooltip?: boolean | undefined | undefined;
|
|
349
|
-
feedbackType?: import("./Feedback").FeedbackType | undefined;
|
|
349
|
+
feedbackType?: import("./Feedback.js").FeedbackType | undefined;
|
|
350
350
|
}> & {
|
|
351
|
-
Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
|
|
352
|
-
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
351
|
+
Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput.js").FormCheckInputProps>;
|
|
352
|
+
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel.js").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
353
353
|
};
|
|
354
|
-
Label: DynamicRefForwardingComponent<"label", import("./FormLabel").FormLabelProps>;
|
|
355
|
-
Text: DynamicRefForwardingComponent<"small", import("./FormText").FormTextProps>;
|
|
356
|
-
Range: React.ForwardRefExoticComponent<import("./FormRange").FormRangeProps & React.RefAttributes<HTMLInputElement>>;
|
|
357
|
-
Select: React.ForwardRefExoticComponent<import("./FormSelect").FormSelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
358
|
-
FloatingLabel: DynamicRefForwardingComponent<"div", import("./FloatingLabel").FloatingLabelProps>;
|
|
354
|
+
Label: DynamicRefForwardingComponent<"label", import("./FormLabel.js").FormLabelProps>;
|
|
355
|
+
Text: DynamicRefForwardingComponent<"small", import("./FormText.js").FormTextProps>;
|
|
356
|
+
Range: React.ForwardRefExoticComponent<import("./FormRange.js").FormRangeProps & React.RefAttributes<HTMLInputElement>>;
|
|
357
|
+
Select: React.ForwardRefExoticComponent<import("./FormSelect.js").FormSelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
358
|
+
FloatingLabel: DynamicRefForwardingComponent<"div", import("./FloatingLabel.js").FloatingLabelProps>;
|
|
359
359
|
};
|
|
360
360
|
export default _default;
|
package/lib/Form.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import FormCheck from './FormCheck';
|
|
4
|
-
import FormControl from './FormControl';
|
|
5
|
-
import FormFloating from './FormFloating';
|
|
6
|
-
import FormGroup from './FormGroup';
|
|
7
|
-
import FormLabel from './FormLabel';
|
|
8
|
-
import FormRange from './FormRange';
|
|
9
|
-
import FormSelect from './FormSelect';
|
|
10
|
-
import FormText from './FormText';
|
|
11
|
-
import Switch from './Switch';
|
|
12
|
-
import FloatingLabel from './FloatingLabel';
|
|
3
|
+
import FormCheck from './FormCheck.js';
|
|
4
|
+
import FormControl from './FormControl.js';
|
|
5
|
+
import FormFloating from './FormFloating.js';
|
|
6
|
+
import FormGroup from './FormGroup.js';
|
|
7
|
+
import FormLabel from './FormLabel.js';
|
|
8
|
+
import FormRange from './FormRange.js';
|
|
9
|
+
import FormSelect from './FormSelect.js';
|
|
10
|
+
import FormText from './FormText.js';
|
|
11
|
+
import Switch from './Switch.js';
|
|
12
|
+
import FloatingLabel from './FloatingLabel.js';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
const Form = /*#__PURE__*/React.forwardRef(({
|
|
15
15
|
className,
|
package/lib/FormCheck.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { DynamicRefForwardingComponent } from '@restart/ui/types';
|
|
3
|
-
import { type FeedbackType } from './Feedback';
|
|
3
|
+
import { type FeedbackType } from './Feedback.js';
|
|
4
4
|
export type FormCheckType = 'checkbox' | 'radio' | 'switch';
|
|
5
5
|
export interface FormCheckProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
6
6
|
/**
|
|
@@ -82,7 +82,7 @@ export interface FormCheckProps extends React.InputHTMLAttributes<HTMLInputEleme
|
|
|
82
82
|
feedbackType?: FeedbackType | undefined;
|
|
83
83
|
}
|
|
84
84
|
declare const _default: DynamicRefForwardingComponent<"input", FormCheckProps> & {
|
|
85
|
-
Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
|
|
86
|
-
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
85
|
+
Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput.js").FormCheckInputProps>;
|
|
86
|
+
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel.js").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
87
87
|
};
|
|
88
88
|
export default _default;
|
package/lib/FormCheck.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useContext, useMemo } from 'react';
|
|
6
|
-
import Feedback from './Feedback';
|
|
7
|
-
import FormCheckInput from './FormCheckInput';
|
|
8
|
-
import FormCheckLabel from './FormCheckLabel';
|
|
9
|
-
import FormContext from './FormContext';
|
|
10
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
11
|
-
import { hasChildOfType } from './ElementChildren';
|
|
6
|
+
import Feedback from './Feedback.js';
|
|
7
|
+
import FormCheckInput from './FormCheckInput.js';
|
|
8
|
+
import FormCheckLabel from './FormCheckLabel.js';
|
|
9
|
+
import FormContext from './FormContext.js';
|
|
10
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
11
|
+
import { hasChildOfType } from './ElementChildren.js';
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
const FormCheck = /*#__PURE__*/React.forwardRef(({
|
|
14
14
|
id,
|
package/lib/FormCheckInput.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useContext } from 'react';
|
|
6
|
-
import FormContext from './FormContext';
|
|
7
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
+
import FormContext from './FormContext.js';
|
|
7
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const FormCheckInput = /*#__PURE__*/React.forwardRef(({
|
|
10
10
|
id,
|
package/lib/FormCheckLabel.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useContext } from 'react';
|
|
6
|
-
import FormContext from './FormContext';
|
|
7
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
+
import FormContext from './FormContext.js';
|
|
7
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const FormCheckLabel = /*#__PURE__*/React.forwardRef(({
|
|
10
10
|
bsPrefix,
|
package/lib/FormControl.d.ts
CHANGED
|
@@ -59,6 +59,6 @@ export interface FormControlProps extends Omit<React.InputHTMLAttributes<FormCon
|
|
|
59
59
|
isInvalid?: boolean | undefined;
|
|
60
60
|
}
|
|
61
61
|
declare const _default: DynamicRefForwardingComponent<"input", FormControlProps> & {
|
|
62
|
-
Feedback: DynamicRefForwardingComponent<"div", import("./Feedback").FeedbackProps>;
|
|
62
|
+
Feedback: DynamicRefForwardingComponent<"div", import("./Feedback.js").FeedbackProps>;
|
|
63
63
|
};
|
|
64
64
|
export default _default;
|
package/lib/FormControl.js
CHANGED
|
@@ -4,9 +4,9 @@ import clsx from 'clsx';
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useContext } from 'react';
|
|
6
6
|
import warning from 'warning';
|
|
7
|
-
import Feedback from './Feedback';
|
|
8
|
-
import FormContext from './FormContext';
|
|
9
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
7
|
+
import Feedback from './Feedback.js';
|
|
8
|
+
import FormContext from './FormContext.js';
|
|
9
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const FormControl = /*#__PURE__*/React.forwardRef(({
|
|
12
12
|
bsPrefix,
|
package/lib/FormFloating.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const FormFloating = /*#__PURE__*/React.forwardRef(({
|
|
8
8
|
className,
|
package/lib/FormGroup.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
-
import FormContext from './FormContext';
|
|
3
|
+
import FormContext from './FormContext.js';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
const FormGroup = /*#__PURE__*/React.forwardRef(({
|
|
6
6
|
controlId,
|
package/lib/FormLabel.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { DynamicRefForwardingComponent } from '@restart/ui/types';
|
|
3
|
-
import { type ColProps } from './Col';
|
|
3
|
+
import { type ColProps } from './Col.js';
|
|
4
4
|
interface FormLabelBaseProps extends React.HTMLAttributes<HTMLElement> {
|
|
5
5
|
/**
|
|
6
6
|
* Element used to render the component.
|
package/lib/FormLabel.js
CHANGED
|
@@ -4,9 +4,9 @@ import clsx from 'clsx';
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useContext } from 'react';
|
|
6
6
|
import warning from 'warning';
|
|
7
|
-
import Col from './Col';
|
|
8
|
-
import FormContext from './FormContext';
|
|
9
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
7
|
+
import Col from './Col.js';
|
|
8
|
+
import FormContext from './FormContext.js';
|
|
9
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const FormLabel = /*#__PURE__*/React.forwardRef(({
|
|
12
12
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
package/lib/FormRange.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useContext } from 'react';
|
|
6
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
7
|
-
import FormContext from './FormContext';
|
|
6
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
7
|
+
import FormContext from './FormContext.js';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const FormRange = /*#__PURE__*/React.forwardRef(({
|
|
10
10
|
bsPrefix,
|
package/lib/FormSelect.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useContext } from 'react';
|
|
6
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
7
|
-
import FormContext from './FormContext';
|
|
6
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
7
|
+
import FormContext from './FormContext.js';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const FormSelect = /*#__PURE__*/React.forwardRef(({
|
|
10
10
|
bsPrefix,
|
package/lib/FormText.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const FormText = /*#__PURE__*/React.forwardRef(
|
|
8
8
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
package/lib/Image.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const Image = /*#__PURE__*/React.forwardRef(({
|
|
8
8
|
bsPrefix,
|
package/lib/InputGroup.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { DynamicRefForwardingComponent } from '@restart/ui/types';
|
|
3
|
-
import { type FormCheckInputProps } from './FormCheckInput';
|
|
3
|
+
import { type FormCheckInputProps } from './FormCheckInput.js';
|
|
4
4
|
export interface InputGroupProps extends React.HTMLAttributes<HTMLElement> {
|
|
5
5
|
/**
|
|
6
6
|
* Element used to render the component.
|
|
@@ -22,7 +22,7 @@ export interface InputGroupProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
22
22
|
hasValidation?: boolean | undefined;
|
|
23
23
|
}
|
|
24
24
|
declare const _default: DynamicRefForwardingComponent<"div", InputGroupProps> & {
|
|
25
|
-
Text: DynamicRefForwardingComponent<"span", import("./InputGroupText").InputGroupTextProps>;
|
|
25
|
+
Text: DynamicRefForwardingComponent<"span", import("./InputGroupText.js").InputGroupTextProps>;
|
|
26
26
|
Radio: (props: FormCheckInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
Checkbox: (props: FormCheckInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
};
|
package/lib/InputGroup.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
7
|
-
import FormCheckInput from './FormCheckInput';
|
|
8
|
-
import InputGroupContext from './InputGroupContext';
|
|
9
|
-
import InputGroupText from './InputGroupText';
|
|
6
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
7
|
+
import FormCheckInput from './FormCheckInput.js';
|
|
8
|
+
import InputGroupContext from './InputGroupContext.js';
|
|
9
|
+
import InputGroupText from './InputGroupText.js';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const InputGroupCheckbox = props => /*#__PURE__*/_jsx(InputGroupText, {
|
|
12
12
|
children: /*#__PURE__*/_jsx(FormCheckInput, {
|
package/lib/InputGroupText.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const InputGroupText = /*#__PURE__*/React.forwardRef(({
|
|
8
8
|
className,
|
package/lib/ListGroup.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { DynamicRefForwardingComponent, EventKey } from '@restart/ui/types';
|
|
3
|
-
import type { BaseNavProps } from './types';
|
|
3
|
+
import type { BaseNavProps } from './types.js';
|
|
4
4
|
export interface ListGroupProps extends BaseNavProps {
|
|
5
5
|
/**
|
|
6
6
|
* Element used to render the component.
|
|
@@ -33,6 +33,6 @@ export interface ListGroupProps extends BaseNavProps {
|
|
|
33
33
|
numbered?: boolean | undefined;
|
|
34
34
|
}
|
|
35
35
|
declare const _default: DynamicRefForwardingComponent<"div", ListGroupProps> & {
|
|
36
|
-
Item: DynamicRefForwardingComponent<"a", import("./ListGroupItem").ListGroupItemProps>;
|
|
36
|
+
Item: DynamicRefForwardingComponent<"a", import("./ListGroupItem.js").ListGroupItemProps>;
|
|
37
37
|
};
|
|
38
38
|
export default _default;
|
package/lib/ListGroup.js
CHANGED
|
@@ -5,8 +5,8 @@ import * as React from 'react';
|
|
|
5
5
|
import warning from 'warning';
|
|
6
6
|
import { useUncontrolled } from 'uncontrollable';
|
|
7
7
|
import BaseNav from '@restart/ui/Nav';
|
|
8
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
9
|
-
import ListGroupItem from './ListGroupItem';
|
|
8
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
9
|
+
import ListGroupItem from './ListGroupItem.js';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const ListGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
12
12
|
const {
|
package/lib/ListGroupItem.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { DynamicRefForwardingComponent } from '@restart/ui/types';
|
|
3
|
-
import type { BaseNavItemProps, Variant } from './types';
|
|
3
|
+
import type { BaseNavItemProps, Variant } from './types.js';
|
|
4
4
|
export interface ListGroupItemProps extends BaseNavItemProps {
|
|
5
5
|
/**
|
|
6
6
|
* You can use a custom element type for this component. For none `action` items, items render as `li`.
|
package/lib/ListGroupItem.js
CHANGED
|
@@ -6,7 +6,7 @@ import warning from 'warning';
|
|
|
6
6
|
import useEventCallback from '@restart/hooks/useEventCallback';
|
|
7
7
|
import { useNavItem } from '@restart/ui/NavItem';
|
|
8
8
|
import { makeEventKey } from '@restart/ui/SelectableContext';
|
|
9
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
9
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const ListGroupItem = /*#__PURE__*/React.forwardRef(({
|
|
12
12
|
bsPrefix,
|
package/lib/Modal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type ModalHandle } from '@restart/ui/Modal';
|
|
3
|
-
import type { BaseModalProps } from './types';
|
|
3
|
+
import type { BaseModalProps } from './types.js';
|
|
4
4
|
export interface ModalProps extends BaseModalProps {
|
|
5
5
|
/**
|
|
6
6
|
* @default 'modal'
|
|
@@ -52,11 +52,11 @@ export interface ModalProps extends BaseModalProps {
|
|
|
52
52
|
[other: string]: any;
|
|
53
53
|
}
|
|
54
54
|
declare const _default: React.ForwardRefExoticComponent<Omit<ModalProps, "ref"> & React.RefAttributes<ModalHandle>> & {
|
|
55
|
-
Body: import("@restart/ui/types").DynamicRefForwardingComponent<"div", import("./ModalBody").ModalBodyProps>;
|
|
56
|
-
Header: React.ForwardRefExoticComponent<import("./ModalHeader").ModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
-
Title: import("@restart/ui/types").DynamicRefForwardingComponent<"span", import("./ModalTitle").ModalTitleProps>;
|
|
58
|
-
Footer: import("@restart/ui/types").DynamicRefForwardingComponent<"div", import("./ModalFooter").ModalFooterProps>;
|
|
59
|
-
Dialog: React.ForwardRefExoticComponent<import("./ModalDialog").ModalDialogProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
Body: import("@restart/ui/types").DynamicRefForwardingComponent<"div", import("./ModalBody.js").ModalBodyProps>;
|
|
56
|
+
Header: React.ForwardRefExoticComponent<import("./ModalHeader.js").ModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
+
Title: import("@restart/ui/types").DynamicRefForwardingComponent<"span", import("./ModalTitle.js").ModalTitleProps>;
|
|
58
|
+
Footer: import("@restart/ui/types").DynamicRefForwardingComponent<"div", import("./ModalFooter.js").ModalFooterProps>;
|
|
59
|
+
Dialog: React.ForwardRefExoticComponent<import("./ModalDialog.js").ModalDialogProps & React.RefAttributes<HTMLDivElement>>;
|
|
60
60
|
TRANSITION_DURATION: number;
|
|
61
61
|
BACKDROP_TRANSITION_DURATION: number;
|
|
62
62
|
};
|
package/lib/Modal.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import addEventListener from 'dom-helpers/addEventListener';
|
|
5
4
|
import canUseDOM from 'dom-helpers/canUseDOM';
|
|
6
5
|
import ownerDocument from 'dom-helpers/ownerDocument';
|
|
7
|
-
import removeEventListener from 'dom-helpers/removeEventListener';
|
|
8
6
|
import getScrollbarSize from 'dom-helpers/scrollbarSize';
|
|
9
7
|
import useCallbackRef from '@restart/hooks/useCallbackRef';
|
|
10
8
|
import useEventCallback from '@restart/hooks/useEventCallback';
|
|
@@ -14,15 +12,15 @@ import transitionEnd from 'dom-helpers/transitionEnd';
|
|
|
14
12
|
import * as React from 'react';
|
|
15
13
|
import { useCallback, useMemo, useRef, useState } from 'react';
|
|
16
14
|
import BaseModal from '@restart/ui/Modal';
|
|
17
|
-
import { getSharedManager } from './BootstrapModalManager';
|
|
18
|
-
import Fade from './Fade';
|
|
19
|
-
import ModalBody from './ModalBody';
|
|
20
|
-
import ModalContext from './ModalContext';
|
|
21
|
-
import ModalDialog from './ModalDialog';
|
|
22
|
-
import ModalFooter from './ModalFooter';
|
|
23
|
-
import ModalHeader from './ModalHeader';
|
|
24
|
-
import ModalTitle from './ModalTitle';
|
|
25
|
-
import { useBootstrapPrefix, useIsRTL } from './ThemeProvider';
|
|
15
|
+
import { getSharedManager } from './BootstrapModalManager.js';
|
|
16
|
+
import Fade from './Fade.js';
|
|
17
|
+
import ModalBody from './ModalBody.js';
|
|
18
|
+
import ModalContext from './ModalContext.js';
|
|
19
|
+
import ModalDialog from './ModalDialog.js';
|
|
20
|
+
import ModalFooter from './ModalFooter.js';
|
|
21
|
+
import ModalHeader from './ModalHeader.js';
|
|
22
|
+
import ModalTitle from './ModalTitle.js';
|
|
23
|
+
import { useBootstrapPrefix, useIsRTL } from './ThemeProvider.js';
|
|
26
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
25
|
function DialogTransition(props) {
|
|
28
26
|
return /*#__PURE__*/_jsx(Fade, {
|
|
@@ -106,7 +104,7 @@ const Modal = /*#__PURE__*/React.forwardRef(({
|
|
|
106
104
|
}
|
|
107
105
|
});
|
|
108
106
|
useWillUnmount(() => {
|
|
109
|
-
removeEventListener(
|
|
107
|
+
window.removeEventListener('resize', handleWindowResize);
|
|
110
108
|
removeStaticModalAnimationRef.current == null || removeStaticModalAnimationRef.current();
|
|
111
109
|
});
|
|
112
110
|
|
|
@@ -171,14 +169,14 @@ const Modal = /*#__PURE__*/React.forwardRef(({
|
|
|
171
169
|
onEntering == null || onEntering(node, isAppearing);
|
|
172
170
|
|
|
173
171
|
// FIXME: This should work even when animation is disabled.
|
|
174
|
-
addEventListener(
|
|
172
|
+
window.addEventListener('resize', handleWindowResize);
|
|
175
173
|
};
|
|
176
174
|
const handleExited = node => {
|
|
177
175
|
if (node) node.style.display = ''; // RHL removes it sometimes
|
|
178
176
|
onExited == null || onExited(node);
|
|
179
177
|
|
|
180
178
|
// FIXME: This should work even when animation is disabled.
|
|
181
|
-
removeEventListener(
|
|
179
|
+
window.removeEventListener('resize', handleWindowResize);
|
|
182
180
|
};
|
|
183
181
|
const renderBackdrop = useCallback(backdropProps => /*#__PURE__*/_jsx("div", {
|
|
184
182
|
...backdropProps,
|