react-bootstrap 2.8.0 → 2.9.0-beta.1
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/AlertHeading/package.json +7 -0
- package/AlertLink/package.json +7 -0
- package/CardBody/package.json +7 -0
- package/CardFooter/package.json +7 -0
- package/CardImgOverlay/package.json +7 -0
- package/CardLink/package.json +7 -0
- package/CardSubtitle/package.json +7 -0
- package/CardText/package.json +7 -0
- package/CardTitle/package.json +7 -0
- package/DropdownDivider/package.json +7 -0
- package/DropdownHeader/package.json +7 -0
- package/DropdownItemText/package.json +7 -0
- package/InputGroupText/package.json +7 -0
- package/NavbarText/package.json +7 -0
- package/cjs/AbstractModalHeader.js +1 -0
- package/cjs/Accordion.js +1 -0
- package/cjs/AccordionBody.js +1 -0
- package/cjs/AccordionButton.js +1 -0
- package/cjs/AccordionCollapse.js +1 -0
- package/cjs/AccordionContext.js +1 -0
- package/cjs/AccordionHeader.js +1 -0
- package/cjs/AccordionItem.js +1 -0
- package/cjs/AccordionItemContext.js +1 -0
- package/cjs/Alert.d.ts +2 -2
- package/cjs/Alert.js +5 -13
- package/cjs/AlertHeading.d.ts +6 -0
- package/cjs/AlertHeading.js +32 -0
- package/cjs/AlertLink.d.ts +6 -0
- package/cjs/AlertLink.js +30 -0
- package/cjs/Badge.js +1 -0
- package/cjs/Breadcrumb.js +1 -0
- package/cjs/BreadcrumbItem.js +1 -0
- package/cjs/Button.js +1 -0
- package/cjs/ButtonGroup.js +1 -0
- package/cjs/ButtonToolbar.js +1 -0
- package/cjs/Card.d.ts +7 -7
- package/cjs/Card.js +17 -28
- package/cjs/CardBody.d.ts +6 -0
- package/cjs/CardBody.js +29 -0
- package/cjs/CardFooter.d.ts +6 -0
- package/cjs/CardFooter.js +29 -0
- package/cjs/CardGroup.d.ts +6 -2
- package/cjs/CardGroup.js +22 -2
- package/cjs/CardHeader.js +1 -0
- package/cjs/CardHeaderContext.js +1 -0
- package/cjs/CardImg.js +1 -0
- package/cjs/CardImgOverlay.d.ts +6 -0
- package/cjs/CardImgOverlay.js +29 -0
- package/cjs/CardLink.d.ts +6 -0
- package/cjs/CardLink.js +29 -0
- package/cjs/CardSubtitle.d.ts +6 -0
- package/cjs/CardSubtitle.js +31 -0
- package/cjs/CardText.d.ts +6 -0
- package/cjs/CardText.js +29 -0
- package/cjs/CardTitle.d.ts +6 -0
- package/cjs/CardTitle.js +31 -0
- package/cjs/Carousel.d.ts +1 -1
- package/cjs/Carousel.js +1 -0
- package/cjs/CarouselCaption.d.ts +6 -2
- package/cjs/CarouselCaption.js +22 -2
- package/cjs/CarouselItem.js +1 -0
- package/cjs/Col.js +1 -0
- package/cjs/Container.js +1 -0
- package/cjs/Dropdown.d.ts +4 -4
- package/cjs/Dropdown.js +7 -18
- package/cjs/DropdownContext.js +1 -0
- package/cjs/DropdownDivider.d.ts +6 -0
- package/cjs/DropdownDivider.js +31 -0
- package/cjs/DropdownHeader.d.ts +6 -0
- package/cjs/DropdownHeader.js +31 -0
- package/cjs/DropdownItem.d.ts +2 -2
- package/cjs/DropdownItem.js +1 -0
- package/cjs/DropdownItemText.d.ts +6 -0
- package/cjs/DropdownItemText.js +29 -0
- package/cjs/DropdownMenu.js +1 -0
- package/cjs/DropdownToggle.js +1 -0
- package/cjs/Figure.d.ts +7 -4
- package/cjs/Figure.js +20 -3
- package/cjs/FigureCaption.d.ts +5 -1
- package/cjs/FigureCaption.js +20 -3
- package/cjs/FloatingLabel.js +1 -0
- package/cjs/Form.d.ts +1 -1
- package/cjs/FormCheck.js +1 -0
- package/cjs/FormCheckInput.js +1 -0
- package/cjs/FormCheckLabel.js +1 -0
- package/cjs/FormContext.js +1 -0
- package/cjs/FormControl.js +2 -12
- package/cjs/FormFloating.d.ts +6 -2
- package/cjs/FormFloating.js +22 -2
- package/cjs/FormLabel.js +1 -0
- package/cjs/FormRange.js +1 -0
- package/cjs/FormSelect.js +1 -0
- package/cjs/FormText.js +1 -0
- package/cjs/Image.js +1 -0
- package/cjs/InputGroup.d.ts +4 -3
- package/cjs/InputGroup.js +5 -7
- package/cjs/InputGroupContext.js +1 -0
- package/cjs/InputGroupText.d.ts +6 -0
- package/cjs/InputGroupText.js +29 -0
- package/cjs/ListGroup.js +1 -0
- package/cjs/ListGroupItem.js +1 -0
- package/cjs/Modal.d.ts +3 -3
- package/cjs/Modal.js +1 -0
- package/cjs/ModalBody.d.ts +6 -2
- package/cjs/ModalBody.js +22 -2
- package/cjs/ModalContext.js +1 -0
- package/cjs/ModalDialog.js +1 -0
- package/cjs/ModalFooter.d.ts +6 -2
- package/cjs/ModalFooter.js +22 -2
- package/cjs/ModalHeader.js +1 -0
- package/cjs/ModalTitle.d.ts +6 -3
- package/cjs/ModalTitle.js +21 -3
- package/cjs/Nav.d.ts +1 -1
- package/cjs/Nav.js +1 -0
- package/cjs/NavContext.js +1 -0
- package/cjs/NavDropdown.d.ts +4 -4
- package/cjs/NavDropdown.js +1 -0
- package/cjs/NavItem.d.ts +6 -2
- package/cjs/NavItem.js +22 -2
- package/cjs/NavLink.js +1 -0
- package/cjs/Navbar.d.ts +1 -1
- package/cjs/Navbar.js +3 -5
- package/cjs/NavbarBrand.js +1 -0
- package/cjs/NavbarCollapse.js +1 -0
- package/cjs/NavbarContext.js +1 -0
- package/cjs/NavbarOffcanvas.js +1 -0
- package/cjs/NavbarText.d.ts +6 -0
- package/cjs/NavbarText.js +29 -0
- package/cjs/NavbarToggle.js +1 -0
- package/cjs/Offcanvas.d.ts +2 -2
- package/cjs/Offcanvas.js +1 -0
- package/cjs/OffcanvasBody.d.ts +6 -2
- package/cjs/OffcanvasBody.js +22 -2
- package/cjs/OffcanvasHeader.js +1 -0
- package/cjs/OffcanvasTitle.d.ts +6 -3
- package/cjs/OffcanvasTitle.js +21 -3
- package/cjs/OffcanvasToggling.js +1 -0
- package/cjs/Overlay.js +4 -2
- package/cjs/OverlayTrigger.js +1 -0
- package/cjs/Pagination.js +1 -0
- package/cjs/Popover.d.ts +2 -2
- package/cjs/Popover.js +1 -0
- package/cjs/PopoverBody.d.ts +6 -2
- package/cjs/PopoverBody.js +22 -2
- package/cjs/PopoverHeader.d.ts +6 -2
- package/cjs/PopoverHeader.js +22 -2
- package/cjs/ProgressBar.js +1 -0
- package/cjs/Ratio.js +1 -0
- package/cjs/Row.js +1 -0
- package/cjs/Spinner.js +1 -0
- package/cjs/Stack.js +1 -0
- package/cjs/Tab.d.ts +1 -1
- package/cjs/Tab.js +0 -6
- package/cjs/TabContent.d.ts +6 -2
- package/cjs/TabContent.js +22 -2
- package/cjs/TabPane.js +1 -0
- package/cjs/Table.js +1 -0
- package/cjs/ThemeProvider.js +1 -0
- package/cjs/Toast.d.ts +1 -1
- package/cjs/Toast.js +1 -0
- package/cjs/ToastBody.d.ts +6 -2
- package/cjs/ToastBody.js +22 -2
- package/cjs/ToastContainer.js +1 -0
- package/cjs/ToastContext.js +1 -0
- package/cjs/ToastHeader.js +1 -0
- package/cjs/ToggleButton.d.ts +1 -0
- package/cjs/ToggleButton.js +1 -0
- package/cjs/Tooltip.js +1 -0
- package/cjs/TransitionWrapper.js +1 -0
- package/cjs/createWithBsPrefix.js +1 -0
- package/cjs/index.d.ts +71 -9
- package/cjs/index.js +68 -15
- package/cjs/useOverlayOffset.js +1 -0
- package/cjs/usePlaceholder.js +1 -0
- package/dist/react-bootstrap.js +1199 -490
- package/dist/react-bootstrap.min.js +1 -1
- package/esm/AbstractModalHeader.js +2 -0
- package/esm/Accordion.js +2 -0
- package/esm/AccordionBody.js +2 -0
- package/esm/AccordionButton.js +2 -0
- package/esm/AccordionCollapse.js +2 -0
- package/esm/AccordionContext.js +2 -0
- package/esm/AccordionHeader.js +2 -0
- package/esm/AccordionItem.js +2 -0
- package/esm/AccordionItemContext.js +2 -0
- package/esm/Alert.d.ts +2 -2
- package/esm/Alert.js +4 -11
- package/esm/AlertHeading.d.ts +6 -0
- package/esm/AlertHeading.js +24 -0
- package/esm/AlertLink.d.ts +6 -0
- package/esm/AlertLink.js +22 -0
- package/esm/Badge.js +2 -0
- package/esm/Breadcrumb.js +2 -0
- package/esm/BreadcrumbItem.js +2 -0
- package/esm/Button.js +2 -0
- package/esm/ButtonGroup.js +2 -0
- package/esm/ButtonToolbar.js +2 -0
- package/esm/Card.d.ts +7 -7
- package/esm/Card.js +10 -20
- package/esm/CardBody.d.ts +6 -0
- package/esm/CardBody.js +21 -0
- package/esm/CardFooter.d.ts +6 -0
- package/esm/CardFooter.js +21 -0
- package/esm/CardGroup.d.ts +6 -2
- package/esm/CardGroup.js +21 -2
- package/esm/CardHeader.js +2 -0
- package/esm/CardHeaderContext.js +2 -0
- package/esm/CardImg.js +2 -0
- package/esm/CardImgOverlay.d.ts +6 -0
- package/esm/CardImgOverlay.js +21 -0
- package/esm/CardLink.d.ts +6 -0
- package/esm/CardLink.js +21 -0
- package/esm/CardSubtitle.d.ts +6 -0
- package/esm/CardSubtitle.js +23 -0
- package/esm/CardText.d.ts +6 -0
- package/esm/CardText.js +21 -0
- package/esm/CardTitle.d.ts +6 -0
- package/esm/CardTitle.js +23 -0
- package/esm/Carousel.d.ts +1 -1
- package/esm/Carousel.js +2 -0
- package/esm/CarouselCaption.d.ts +6 -2
- package/esm/CarouselCaption.js +21 -2
- package/esm/CarouselItem.js +2 -0
- package/esm/Col.js +2 -0
- package/esm/Container.js +2 -0
- package/esm/Dropdown.d.ts +4 -4
- package/esm/Dropdown.js +5 -15
- package/esm/DropdownContext.js +2 -0
- package/esm/DropdownDivider.d.ts +6 -0
- package/esm/DropdownDivider.js +23 -0
- package/esm/DropdownHeader.d.ts +6 -0
- package/esm/DropdownHeader.js +23 -0
- package/esm/DropdownItem.d.ts +2 -2
- package/esm/DropdownItem.js +2 -0
- package/esm/DropdownItemText.d.ts +6 -0
- package/esm/DropdownItemText.js +21 -0
- package/esm/DropdownMenu.js +2 -0
- package/esm/DropdownToggle.js +2 -0
- package/esm/Figure.d.ts +7 -4
- package/esm/Figure.js +19 -3
- package/esm/FigureCaption.d.ts +5 -1
- package/esm/FigureCaption.js +19 -3
- package/esm/FloatingLabel.js +2 -0
- package/esm/Form.d.ts +1 -1
- package/esm/FormCheck.js +2 -0
- package/esm/FormCheckInput.js +2 -0
- package/esm/FormCheckLabel.js +2 -0
- package/esm/FormContext.js +2 -0
- package/esm/FormControl.js +3 -12
- package/esm/FormFloating.d.ts +6 -2
- package/esm/FormFloating.js +21 -2
- package/esm/FormLabel.js +2 -0
- package/esm/FormRange.js +2 -0
- package/esm/FormSelect.js +2 -0
- package/esm/FormText.js +2 -0
- package/esm/Image.js +2 -0
- package/esm/InputGroup.d.ts +4 -3
- package/esm/InputGroup.js +3 -4
- package/esm/InputGroupContext.js +2 -0
- package/esm/InputGroupText.d.ts +6 -0
- package/esm/InputGroupText.js +21 -0
- package/esm/ListGroup.js +2 -0
- package/esm/ListGroupItem.js +2 -0
- package/esm/Modal.d.ts +3 -3
- package/esm/Modal.js +2 -0
- package/esm/ModalBody.d.ts +6 -2
- package/esm/ModalBody.js +21 -2
- package/esm/ModalContext.js +2 -0
- package/esm/ModalDialog.js +2 -0
- package/esm/ModalFooter.d.ts +6 -2
- package/esm/ModalFooter.js +21 -2
- package/esm/ModalHeader.js +2 -0
- package/esm/ModalTitle.d.ts +6 -3
- package/esm/ModalTitle.js +21 -4
- package/esm/Nav.d.ts +1 -1
- package/esm/Nav.js +2 -0
- package/esm/NavContext.js +2 -0
- package/esm/NavDropdown.d.ts +4 -4
- package/esm/NavDropdown.js +2 -0
- package/esm/NavItem.d.ts +6 -2
- package/esm/NavItem.js +21 -2
- package/esm/NavLink.js +2 -0
- package/esm/Navbar.d.ts +1 -1
- package/esm/Navbar.js +3 -4
- package/esm/NavbarBrand.js +2 -0
- package/esm/NavbarCollapse.js +2 -0
- package/esm/NavbarContext.js +2 -0
- package/esm/NavbarOffcanvas.js +2 -0
- package/esm/NavbarText.d.ts +6 -0
- package/esm/NavbarText.js +21 -0
- package/esm/NavbarToggle.js +2 -0
- package/esm/Offcanvas.d.ts +2 -2
- package/esm/Offcanvas.js +2 -0
- package/esm/OffcanvasBody.d.ts +6 -2
- package/esm/OffcanvasBody.js +21 -2
- package/esm/OffcanvasHeader.js +2 -0
- package/esm/OffcanvasTitle.d.ts +6 -3
- package/esm/OffcanvasTitle.js +21 -4
- package/esm/OffcanvasToggling.js +2 -0
- package/esm/Overlay.js +5 -2
- package/esm/OverlayTrigger.js +2 -0
- package/esm/Pagination.js +2 -0
- package/esm/Popover.d.ts +2 -2
- package/esm/Popover.js +2 -0
- package/esm/PopoverBody.d.ts +6 -2
- package/esm/PopoverBody.js +21 -2
- package/esm/PopoverHeader.d.ts +6 -2
- package/esm/PopoverHeader.js +21 -2
- package/esm/ProgressBar.js +2 -0
- package/esm/Ratio.js +2 -0
- package/esm/Row.js +2 -0
- package/esm/Spinner.js +2 -0
- package/esm/Stack.js +2 -0
- package/esm/Tab.d.ts +1 -1
- package/esm/Tab.js +0 -5
- package/esm/TabContent.d.ts +6 -2
- package/esm/TabContent.js +21 -2
- package/esm/TabPane.js +2 -0
- package/esm/Table.js +2 -0
- package/esm/ThemeProvider.js +2 -0
- package/esm/Toast.d.ts +1 -1
- package/esm/Toast.js +2 -0
- package/esm/ToastBody.d.ts +6 -2
- package/esm/ToastBody.js +21 -2
- package/esm/ToastContainer.js +2 -0
- package/esm/ToastContext.js +2 -0
- package/esm/ToastHeader.js +2 -0
- package/esm/ToggleButton.d.ts +1 -0
- package/esm/ToggleButton.js +2 -0
- package/esm/Tooltip.js +2 -0
- package/esm/TransitionWrapper.js +2 -0
- package/esm/createWithBsPrefix.js +2 -0
- package/esm/index.d.ts +71 -9
- package/esm/index.js +33 -7
- package/esm/useOverlayOffset.js +2 -0
- package/esm/usePlaceholder.js +2 -0
- package/package.json +4 -4
package/esm/Dropdown.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
1
3
|
import classNames from 'classnames';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
import { useContext, useMemo } from 'react';
|
|
@@ -5,28 +7,16 @@ import BaseDropdown from '@restart/ui/Dropdown';
|
|
|
5
7
|
import { useUncontrolled } from 'uncontrollable';
|
|
6
8
|
import useEventCallback from '@restart/hooks/useEventCallback';
|
|
7
9
|
import DropdownContext from './DropdownContext';
|
|
10
|
+
import DropdownDivider from './DropdownDivider';
|
|
11
|
+
import DropdownHeader from './DropdownHeader';
|
|
8
12
|
import DropdownItem from './DropdownItem';
|
|
13
|
+
import DropdownItemText from './DropdownItemText';
|
|
9
14
|
import DropdownMenu, { getDropdownMenuPlacement } from './DropdownMenu';
|
|
10
15
|
import DropdownToggle from './DropdownToggle';
|
|
11
16
|
import InputGroupContext from './InputGroupContext';
|
|
12
17
|
import { useBootstrapPrefix, useIsRTL } from './ThemeProvider';
|
|
13
|
-
import createWithBsPrefix from './createWithBsPrefix';
|
|
14
18
|
import { alignPropType } from './types';
|
|
15
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
const DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
17
|
-
defaultProps: {
|
|
18
|
-
role: 'heading'
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
const DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
22
|
-
Component: 'hr',
|
|
23
|
-
defaultProps: {
|
|
24
|
-
role: 'separator'
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
const DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
28
|
-
Component: 'span'
|
|
29
|
-
});
|
|
30
20
|
const Dropdown = /*#__PURE__*/React.forwardRef((pProps, ref) => {
|
|
31
21
|
const {
|
|
32
22
|
bsPrefix,
|
package/esm/DropdownContext.js
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface DropdownDividerProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const DropdownDivider: BsPrefixRefForwardingComponent<'hr', DropdownDividerProps>;
|
|
6
|
+
export default DropdownDivider;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const DropdownDivider = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'hr',
|
|
11
|
+
role = 'separator',
|
|
12
|
+
...props
|
|
13
|
+
}, ref) => {
|
|
14
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-divider');
|
|
15
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
16
|
+
ref: ref,
|
|
17
|
+
className: classNames(className, bsPrefix),
|
|
18
|
+
role: role,
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
DropdownDivider.displayName = 'DropdownDivider';
|
|
23
|
+
export default DropdownDivider;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface DropdownHeaderProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const DropdownHeader: BsPrefixRefForwardingComponent<'div', DropdownHeaderProps>;
|
|
6
|
+
export default DropdownHeader;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const DropdownHeader = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'div',
|
|
11
|
+
role = 'heading',
|
|
12
|
+
...props
|
|
13
|
+
}, ref) => {
|
|
14
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-header');
|
|
15
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
16
|
+
ref: ref,
|
|
17
|
+
className: classNames(className, bsPrefix),
|
|
18
|
+
role: role,
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
DropdownHeader.displayName = 'DropdownHeader';
|
|
23
|
+
export default DropdownHeader;
|
package/esm/DropdownItem.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DropdownItemProps as BaseDropdownItemProps } from '@restart/ui/DropdownItem';
|
|
2
2
|
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
3
|
export interface DropdownItemProps extends BaseDropdownItemProps, BsPrefixProps {
|
|
4
4
|
}
|
|
5
|
-
declare const DropdownItem: BsPrefixRefForwardingComponent<
|
|
5
|
+
declare const DropdownItem: BsPrefixRefForwardingComponent<'a', DropdownItemProps>;
|
|
6
6
|
export default DropdownItem;
|
package/esm/DropdownItem.js
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface DropdownItemTextProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const DropdownItemText: BsPrefixRefForwardingComponent<'span', DropdownItemTextProps>;
|
|
6
|
+
export default DropdownItemText;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const DropdownItemText = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'span',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-item-text');
|
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: classNames(className, bsPrefix),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
DropdownItemText.displayName = 'DropdownItemText';
|
|
21
|
+
export default DropdownItemText;
|
package/esm/DropdownMenu.js
CHANGED
package/esm/DropdownToggle.js
CHANGED
package/esm/Figure.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface FigureProps extends BsPrefixProps, React.AnchorHTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const _default: BsPrefixRefForwardingComponent<"figure", FigureProps> & {
|
|
6
|
+
Image: React.ForwardRefExoticComponent<import("./Image").ImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
7
|
+
Caption: BsPrefixRefForwardingComponent<"figcaption", import("./FigureCaption").FigureCaptionProps>;
|
|
5
8
|
};
|
|
6
9
|
export default _default;
|
package/esm/Figure.js
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
2
5
|
import FigureImage from './FigureImage';
|
|
3
6
|
import FigureCaption from './FigureCaption';
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
const Figure = /*#__PURE__*/React.forwardRef(({
|
|
10
|
+
className,
|
|
11
|
+
bsPrefix,
|
|
12
|
+
as: Component = 'figure',
|
|
13
|
+
...props
|
|
14
|
+
}, ref) => {
|
|
15
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'figure');
|
|
16
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
className: classNames(className, bsPrefix),
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
6
21
|
});
|
|
22
|
+
Figure.displayName = 'Figure';
|
|
7
23
|
export default Object.assign(Figure, {
|
|
8
24
|
Image: FigureImage,
|
|
9
25
|
Caption: FigureCaption
|
package/esm/FigureCaption.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface FigureCaptionProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const FigureCaption: BsPrefixRefForwardingComponent<'figcaption', FigureCaptionProps>;
|
|
2
6
|
export default FigureCaption;
|
package/esm/FigureCaption.js
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const FigureCaption = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'figcaption',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'figure-caption');
|
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: classNames(className, bsPrefix),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
4
19
|
});
|
|
20
|
+
FigureCaption.displayName = 'FigureCaption';
|
|
5
21
|
export default FigureCaption;
|
package/esm/FloatingLabel.js
CHANGED
package/esm/Form.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare const _default: BsPrefixRefForwardingComponent<"form", FormProps> & {
|
|
|
8
8
|
Control: BsPrefixRefForwardingComponent<"input", import("./FormControl").FormControlProps> & {
|
|
9
9
|
Feedback: BsPrefixRefForwardingComponent<"div", import("./Feedback").FeedbackProps>;
|
|
10
10
|
};
|
|
11
|
-
Floating: BsPrefixRefForwardingComponent<"div",
|
|
11
|
+
Floating: BsPrefixRefForwardingComponent<"div", import("./FormFloating").FormFloatingProps>;
|
|
12
12
|
Check: BsPrefixRefForwardingComponent<"input", import("./FormCheck").FormCheckProps> & {
|
|
13
13
|
Input: BsPrefixRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
|
|
14
14
|
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
package/esm/FormCheck.js
CHANGED
package/esm/FormCheckInput.js
CHANGED
package/esm/FormCheckLabel.js
CHANGED
package/esm/FormContext.js
CHANGED
package/esm/FormControl.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
1
3
|
import classNames from 'classnames';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
import { useContext } from 'react';
|
|
@@ -25,17 +27,6 @@ const FormControl = /*#__PURE__*/React.forwardRef(({
|
|
|
25
27
|
controlId
|
|
26
28
|
} = useContext(FormContext);
|
|
27
29
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-control');
|
|
28
|
-
let classes;
|
|
29
|
-
if (plaintext) {
|
|
30
|
-
classes = {
|
|
31
|
-
[`${bsPrefix}-plaintext`]: true
|
|
32
|
-
};
|
|
33
|
-
} else {
|
|
34
|
-
classes = {
|
|
35
|
-
[bsPrefix]: true,
|
|
36
|
-
[`${bsPrefix}-${size}`]: size
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
30
|
process.env.NODE_ENV !== "production" ? warning(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
40
31
|
return /*#__PURE__*/_jsx(Component, {
|
|
41
32
|
...props,
|
|
@@ -44,7 +35,7 @@ const FormControl = /*#__PURE__*/React.forwardRef(({
|
|
|
44
35
|
ref: ref,
|
|
45
36
|
readOnly: readOnly,
|
|
46
37
|
id: id || controlId,
|
|
47
|
-
className: classNames(className,
|
|
38
|
+
className: classNames(className, plaintext ? `${bsPrefix}-plaintext` : bsPrefix, size && `${bsPrefix}-${size}`, type === 'color' && `${bsPrefix}-color`, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
48
39
|
});
|
|
49
40
|
});
|
|
50
41
|
FormControl.displayName = 'FormControl';
|
package/esm/FormFloating.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface FormFloatingProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const FormFloating: BsPrefixRefForwardingComponent<'div', FormFloatingProps>;
|
|
6
|
+
export default FormFloating;
|
package/esm/FormFloating.js
CHANGED
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const FormFloating = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'div',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-floating');
|
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: classNames(className, bsPrefix),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
FormFloating.displayName = 'FormFloating';
|
|
21
|
+
export default FormFloating;
|
package/esm/FormLabel.js
CHANGED
package/esm/FormRange.js
CHANGED
package/esm/FormSelect.js
CHANGED
package/esm/FormText.js
CHANGED
package/esm/Image.js
CHANGED
package/esm/InputGroup.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { type FormCheckInputProps } from './FormCheckInput';
|
|
2
3
|
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
4
|
export interface InputGroupProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
5
|
size?: 'sm' | 'lg';
|
|
5
6
|
hasValidation?: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const _default: BsPrefixRefForwardingComponent<"div", InputGroupProps> & {
|
|
8
|
-
Text: BsPrefixRefForwardingComponent<"span",
|
|
9
|
-
Radio: (props:
|
|
10
|
-
Checkbox: (props:
|
|
9
|
+
Text: BsPrefixRefForwardingComponent<"span", import("./InputGroupText").InputGroupTextProps>;
|
|
10
|
+
Radio: (props: FormCheckInputProps) => JSX.Element;
|
|
11
|
+
Checkbox: (props: FormCheckInputProps) => JSX.Element;
|
|
11
12
|
};
|
|
12
13
|
export default _default;
|
package/esm/InputGroup.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
1
3
|
import classNames from 'classnames';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
import { useMemo } from 'react';
|
|
4
|
-
import createWithBsPrefix from './createWithBsPrefix';
|
|
5
6
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
7
|
import FormCheckInput from './FormCheckInput';
|
|
7
8
|
import InputGroupContext from './InputGroupContext';
|
|
9
|
+
import InputGroupText from './InputGroupText';
|
|
8
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
const InputGroupText = createWithBsPrefix('input-group-text', {
|
|
10
|
-
Component: 'span'
|
|
11
|
-
});
|
|
12
11
|
const InputGroupCheckbox = props => /*#__PURE__*/_jsx(InputGroupText, {
|
|
13
12
|
children: /*#__PURE__*/_jsx(FormCheckInput, {
|
|
14
13
|
type: "checkbox",
|
package/esm/InputGroupContext.js
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface InputGroupTextProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const InputGroupText: BsPrefixRefForwardingComponent<'span', InputGroupTextProps>;
|
|
6
|
+
export default InputGroupText;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const InputGroupText = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'span',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group-text');
|
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: classNames(className, bsPrefix),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
InputGroupText.displayName = 'InputGroupText';
|
|
21
|
+
export default InputGroupText;
|
package/esm/ListGroup.js
CHANGED
package/esm/ListGroupItem.js
CHANGED
package/esm/Modal.d.ts
CHANGED
|
@@ -15,10 +15,10 @@ export interface ModalProps extends Omit<BaseModalProps, 'role' | 'renderBackdro
|
|
|
15
15
|
[other: string]: any;
|
|
16
16
|
}
|
|
17
17
|
declare const _default: BsPrefixRefForwardingComponent<"div", ModalProps> & {
|
|
18
|
-
Body: BsPrefixRefForwardingComponent<"div",
|
|
18
|
+
Body: BsPrefixRefForwardingComponent<"div", import("./ModalBody").ModalBodyProps>;
|
|
19
19
|
Header: React.ForwardRefExoticComponent<import("./ModalHeader").ModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
Title: BsPrefixRefForwardingComponent<
|
|
21
|
-
Footer: BsPrefixRefForwardingComponent<"div",
|
|
20
|
+
Title: BsPrefixRefForwardingComponent<"span", import("./ModalTitle").ModalTitleProps>;
|
|
21
|
+
Footer: BsPrefixRefForwardingComponent<"div", import("./ModalFooter").ModalFooterProps>;
|
|
22
22
|
Dialog: React.ForwardRefExoticComponent<import("./ModalDialog").ModalDialogProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
23
|
TRANSITION_DURATION: number;
|
|
24
24
|
BACKDROP_TRANSITION_DURATION: number;
|
package/esm/Modal.js
CHANGED
package/esm/ModalBody.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface ModalBodyProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const ModalBody: BsPrefixRefForwardingComponent<'div', ModalBodyProps>;
|
|
6
|
+
export default ModalBody;
|
package/esm/ModalBody.js
CHANGED
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const ModalBody = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'div',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-body');
|
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: classNames(className, bsPrefix),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
ModalBody.displayName = 'ModalBody';
|
|
21
|
+
export default ModalBody;
|
package/esm/ModalContext.js
CHANGED
package/esm/ModalDialog.js
CHANGED
package/esm/ModalFooter.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface ModalFooterProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const ModalFooter: BsPrefixRefForwardingComponent<'div', ModalFooterProps>;
|
|
6
|
+
export default ModalFooter;
|
package/esm/ModalFooter.js
CHANGED
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const ModalFooter = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'div',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-footer');
|
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: classNames(className, bsPrefix),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
ModalFooter.displayName = 'ModalFooter';
|
|
21
|
+
export default ModalFooter;
|
package/esm/ModalHeader.js
CHANGED
package/esm/ModalTitle.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface ModalTitleProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const ModalTitle: BsPrefixRefForwardingComponent<'span', ModalTitleProps>;
|
|
6
|
+
export default ModalTitle;
|