react-bootstrap 3.0.0-beta.2 → 3.0.0-beta.4
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 +29 -0
- package/cjs/AbstractModalHeader.d.ts +1 -1
- package/cjs/AbstractModalHeader.js +3 -4
- package/cjs/Accordion.d.ts +6 -6
- package/cjs/Accordion.js +8 -9
- package/cjs/AccordionBody.d.ts +1 -1
- package/cjs/AccordionBody.js +4 -5
- package/cjs/AccordionButton.js +5 -6
- package/cjs/AccordionCollapse.d.ts +1 -1
- package/cjs/AccordionCollapse.js +4 -5
- package/cjs/AccordionContext.js +1 -2
- package/cjs/AccordionHeader.d.ts +4 -0
- package/cjs/AccordionHeader.js +5 -4
- package/cjs/AccordionItem.js +3 -4
- package/cjs/AccordionItemContext.js +1 -2
- package/cjs/Alert.d.ts +5 -5
- package/cjs/Alert.js +6 -7
- package/cjs/AlertHeading.js +3 -4
- package/cjs/AlertLink.js +2 -3
- package/cjs/Badge.d.ts +1 -1
- package/cjs/Badge.js +2 -3
- package/cjs/BootstrapModalManager.js +2 -4
- package/cjs/Breadcrumb.d.ts +1 -1
- package/cjs/Breadcrumb.js +3 -4
- package/cjs/BreadcrumbItem.js +2 -3
- package/cjs/Button.d.ts +1 -1
- package/cjs/Button.js +2 -3
- package/cjs/ButtonGroup.js +2 -3
- package/cjs/ButtonToolbar.js +2 -3
- package/cjs/Card.d.ts +10 -10
- package/cjs/Card.js +11 -12
- package/cjs/CardBody.js +2 -3
- package/cjs/CardFooter.js +2 -3
- package/cjs/CardGroup.js +2 -3
- package/cjs/CardHeader.js +3 -4
- package/cjs/CardHeaderContext.js +1 -2
- package/cjs/CardImg.js +2 -3
- package/cjs/CardImgOverlay.js +2 -3
- package/cjs/CardLink.js +2 -3
- package/cjs/CardSubtitle.js +3 -4
- package/cjs/CardText.js +2 -3
- package/cjs/CardTitle.js +3 -4
- package/cjs/Carousel.d.ts +2 -2
- package/cjs/Carousel.js +8 -9
- package/cjs/CarouselCaption.js +2 -3
- package/cjs/CarouselItem.js +2 -3
- package/cjs/CloseButton.js +1 -2
- package/cjs/Col.js +2 -3
- package/cjs/Collapse.d.ts +2 -2
- package/cjs/Collapse.js +9 -11
- package/cjs/Container.js +2 -3
- package/cjs/Dropdown.d.ts +7 -7
- package/cjs/Dropdown.js +10 -11
- package/cjs/DropdownButton.d.ts +3 -3
- package/cjs/DropdownButton.js +4 -5
- package/cjs/DropdownContext.d.ts +1 -1
- package/cjs/DropdownContext.js +1 -2
- package/cjs/DropdownDivider.js +2 -3
- package/cjs/DropdownHeader.js +2 -3
- package/cjs/DropdownItem.js +2 -3
- package/cjs/DropdownItemText.js +2 -3
- package/cjs/DropdownMenu.d.ts +3 -3
- package/cjs/DropdownMenu.js +6 -7
- package/cjs/DropdownToggle.d.ts +1 -1
- package/cjs/DropdownToggle.js +4 -5
- package/cjs/ElementChildren.js +1 -2
- package/cjs/Fade.d.ts +2 -2
- package/cjs/Fade.js +6 -8
- package/cjs/Feedback.js +1 -2
- package/cjs/Figure.d.ts +2 -2
- package/cjs/Figure.js +4 -5
- package/cjs/FigureCaption.js +2 -3
- package/cjs/FigureImage.d.ts +1 -1
- package/cjs/FigureImage.js +2 -3
- package/cjs/FloatingLabel.d.ts +1 -1
- package/cjs/FloatingLabel.js +3 -4
- package/cjs/Form.d.ts +22 -24
- package/cjs/Form.js +11 -12
- package/cjs/FormCheck.d.ts +3 -3
- package/cjs/FormCheck.js +7 -8
- package/cjs/FormCheckInput.js +3 -4
- package/cjs/FormCheckLabel.js +3 -4
- package/cjs/FormContext.js +1 -2
- package/cjs/FormControl.d.ts +1 -1
- package/cjs/FormControl.js +4 -5
- package/cjs/FormFloating.js +2 -3
- package/cjs/FormGroup.js +2 -3
- package/cjs/FormLabel.d.ts +1 -1
- package/cjs/FormLabel.js +4 -5
- package/cjs/FormRange.js +3 -4
- package/cjs/FormSelect.js +3 -4
- package/cjs/FormText.js +2 -3
- package/cjs/Image.js +2 -3
- package/cjs/InputGroup.d.ts +2 -2
- package/cjs/InputGroup.js +5 -6
- package/cjs/InputGroupContext.js +1 -2
- package/cjs/InputGroupText.js +2 -3
- package/cjs/ListGroup.d.ts +2 -2
- package/cjs/ListGroup.js +3 -4
- package/cjs/ListGroupItem.d.ts +1 -1
- package/cjs/ListGroupItem.js +2 -3
- package/cjs/Modal.d.ts +6 -6
- package/cjs/Modal.js +13 -16
- package/cjs/ModalBody.js +2 -3
- package/cjs/ModalContext.js +1 -2
- package/cjs/ModalDialog.js +2 -3
- package/cjs/ModalFooter.js +2 -3
- package/cjs/ModalHeader.d.ts +1 -1
- package/cjs/ModalHeader.js +3 -4
- package/cjs/ModalTitle.js +3 -4
- package/cjs/Nav.d.ts +3 -3
- package/cjs/Nav.js +6 -7
- package/cjs/NavContext.js +1 -2
- package/cjs/NavDropdown.d.ts +6 -6
- package/cjs/NavDropdown.js +4 -5
- package/cjs/NavItem.js +2 -3
- package/cjs/NavLink.d.ts +1 -1
- package/cjs/NavLink.js +2 -3
- package/cjs/Navbar.d.ts +6 -6
- package/cjs/Navbar.js +8 -9
- package/cjs/NavbarBrand.js +2 -3
- package/cjs/NavbarCollapse.d.ts +1 -1
- package/cjs/NavbarCollapse.js +4 -5
- package/cjs/NavbarContext.js +1 -2
- package/cjs/NavbarOffcanvas.d.ts +1 -1
- package/cjs/NavbarOffcanvas.js +3 -4
- package/cjs/NavbarText.js +2 -3
- package/cjs/NavbarToggle.js +3 -4
- package/cjs/Offcanvas.d.ts +4 -4
- package/cjs/Offcanvas.js +9 -10
- package/cjs/OffcanvasBody.js +2 -3
- package/cjs/OffcanvasHeader.d.ts +1 -1
- package/cjs/OffcanvasHeader.js +3 -4
- package/cjs/OffcanvasTitle.js +3 -4
- package/cjs/OffcanvasToggling.d.ts +2 -2
- package/cjs/OffcanvasToggling.js +7 -9
- package/cjs/Overlay.d.ts +2 -2
- package/cjs/Overlay.js +3 -4
- package/cjs/OverlayTrigger.d.ts +2 -2
- package/cjs/OverlayTrigger.js +3 -5
- package/cjs/PageItem.js +1 -2
- package/cjs/Pagination.d.ts +6 -6
- package/cjs/Pagination.js +3 -4
- package/cjs/Placeholder.d.ts +2 -2
- package/cjs/Placeholder.js +3 -4
- package/cjs/PlaceholderButton.d.ts +2 -2
- package/cjs/PlaceholderButton.js +3 -4
- package/cjs/Popover.d.ts +3 -3
- package/cjs/Popover.js +6 -7
- package/cjs/PopoverBody.js +2 -3
- package/cjs/PopoverHeader.js +2 -3
- package/cjs/ProgressBar.js +3 -4
- package/cjs/Ratio.js +2 -3
- package/cjs/Row.js +2 -3
- package/cjs/Spinner.d.ts +1 -1
- package/cjs/Spinner.js +2 -3
- package/cjs/SplitButton.d.ts +2 -2
- package/cjs/SplitButton.js +4 -5
- package/cjs/Stack.d.ts +2 -2
- package/cjs/Stack.js +3 -4
- package/cjs/Switch.d.ts +5 -5
- package/cjs/Switch.js +2 -3
- 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 +2 -3
- package/cjs/TabPane.d.ts +2 -2
- package/cjs/TabPane.js +4 -5
- package/cjs/Table.js +2 -3
- package/cjs/Tabs.d.ts +2 -2
- package/cjs/Tabs.js +8 -9
- package/cjs/ThemeProvider.js +1 -2
- package/cjs/Toast.d.ts +3 -3
- package/cjs/Toast.js +10 -11
- package/cjs/ToastBody.js +2 -3
- package/cjs/ToastContainer.js +2 -3
- package/cjs/ToastContext.js +1 -2
- package/cjs/ToastFade.d.ts +2 -2
- package/cjs/ToastFade.js +4 -6
- package/cjs/ToastHeader.d.ts +1 -1
- package/cjs/ToastHeader.js +4 -5
- package/cjs/ToggleButton.d.ts +1 -1
- package/cjs/ToggleButton.js +3 -4
- package/cjs/ToggleButtonGroup.d.ts +2 -2
- package/cjs/ToggleButtonGroup.js +5 -6
- package/cjs/Tooltip.d.ts +1 -1
- package/cjs/Tooltip.js +4 -5
- package/cjs/TransitionWrapper.d.ts +4 -4
- package/cjs/TransitionWrapper.js +3 -4
- package/cjs/createUtilityClasses.js +1 -1
- package/cjs/createWithBsPrefix.js +2 -3
- package/cjs/divWithClassName.js +1 -2
- 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.d.ts +1 -0
- package/cjs/transitionEndListener.js +5 -6
- 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 +1 -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 +22 -24
- 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 +9 -9
- 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.d.ts +1 -0
- package/lib/transitionEndListener.js +4 -5
- 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 +28 -27
- package/lib/package.json +0 -1
package/lib/DropdownItemText.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 DropdownItemText = /*#__PURE__*/React.forwardRef(({
|
|
8
8
|
className,
|
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;
|
|
@@ -164,7 +164,7 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
|
|
|
164
164
|
onBlurCapture?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
165
165
|
onChange?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
166
166
|
onChangeCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
|
|
167
|
-
onBeforeInput?: React.
|
|
167
|
+
onBeforeInput?: React.InputEventHandler<HTMLInputElement> | undefined;
|
|
168
168
|
onBeforeInputCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
|
|
169
169
|
onInput?: React.FormEventHandler<HTMLInputElement> | undefined;
|
|
170
170
|
onInputCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
|
|
@@ -214,8 +214,6 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
|
|
|
214
214
|
onProgressCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
215
215
|
onRateChange?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
216
216
|
onRateChangeCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
217
|
-
onResize?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
218
|
-
onResizeCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
219
217
|
onSeeked?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
220
218
|
onSeekedCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
221
219
|
onSeeking?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
@@ -319,11 +317,11 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
|
|
|
319
317
|
reverse?: boolean | undefined | undefined;
|
|
320
318
|
list?: string | undefined | undefined;
|
|
321
319
|
bsPrefix?: string | undefined | undefined;
|
|
322
|
-
height?: number | string | undefined | undefined;
|
|
323
|
-
width?: number | string | undefined | undefined;
|
|
324
320
|
label?: React.ReactNode;
|
|
325
|
-
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
326
321
|
pattern?: string | undefined | undefined;
|
|
322
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
323
|
+
height?: number | string | undefined | undefined;
|
|
324
|
+
width?: number | string | undefined | undefined;
|
|
327
325
|
size?: number | undefined | undefined;
|
|
328
326
|
inline?: boolean | undefined | undefined;
|
|
329
327
|
multiple?: boolean | undefined | undefined;
|
|
@@ -346,15 +344,15 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
|
|
|
346
344
|
required?: boolean | undefined | undefined;
|
|
347
345
|
bsSwitchPrefix?: string | undefined | undefined;
|
|
348
346
|
feedbackTooltip?: boolean | undefined | undefined;
|
|
349
|
-
feedbackType?: import("./Feedback").FeedbackType | undefined;
|
|
347
|
+
feedbackType?: import("./Feedback.js").FeedbackType | undefined;
|
|
350
348
|
}> & {
|
|
351
|
-
Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
|
|
352
|
-
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
349
|
+
Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput.js").FormCheckInputProps>;
|
|
350
|
+
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel.js").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
353
351
|
};
|
|
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>;
|
|
352
|
+
Label: DynamicRefForwardingComponent<"label", import("./FormLabel.js").FormLabelProps>;
|
|
353
|
+
Text: DynamicRefForwardingComponent<"small", import("./FormText.js").FormTextProps>;
|
|
354
|
+
Range: React.ForwardRefExoticComponent<import("./FormRange.js").FormRangeProps & React.RefAttributes<HTMLInputElement>>;
|
|
355
|
+
Select: React.ForwardRefExoticComponent<import("./FormSelect.js").FormSelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
356
|
+
FloatingLabel: DynamicRefForwardingComponent<"div", import("./FloatingLabel.js").FloatingLabelProps>;
|
|
359
357
|
};
|
|
360
358
|
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
|
};
|