react-bootstrap 2.9.0-beta.0 → 2.9.0
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/Alert.d.ts +2 -2
- package/cjs/Alert.js +4 -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/Card.d.ts +7 -7
- package/cjs/Card.js +16 -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/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/CarouselCaption.d.ts +6 -2
- package/cjs/CarouselCaption.js +22 -2
- package/cjs/Dropdown.d.ts +4 -4
- package/cjs/Dropdown.js +6 -18
- 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/DropdownItemText.d.ts +6 -0
- package/cjs/DropdownItemText.js +29 -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/Form.d.ts +1 -1
- package/cjs/FormControl.js +1 -12
- package/cjs/FormFloating.d.ts +6 -2
- package/cjs/FormFloating.js +22 -2
- package/cjs/InputGroup.d.ts +4 -3
- package/cjs/InputGroup.js +4 -7
- package/cjs/InputGroupText.d.ts +6 -0
- package/cjs/InputGroupText.js +29 -0
- package/cjs/Modal.d.ts +3 -3
- package/cjs/ModalBody.d.ts +6 -2
- package/cjs/ModalBody.js +22 -2
- package/cjs/ModalFooter.d.ts +6 -2
- package/cjs/ModalFooter.js +22 -2
- package/cjs/ModalTitle.d.ts +6 -3
- package/cjs/ModalTitle.js +21 -3
- package/cjs/Nav.d.ts +1 -1
- package/cjs/NavDropdown.d.ts +4 -4
- package/cjs/NavItem.d.ts +6 -2
- package/cjs/NavItem.js +22 -2
- package/cjs/Navbar.d.ts +1 -1
- package/cjs/Navbar.js +2 -5
- package/cjs/NavbarText.d.ts +6 -0
- package/cjs/NavbarText.js +29 -0
- package/cjs/Offcanvas.d.ts +2 -2
- package/cjs/OffcanvasBody.d.ts +6 -2
- package/cjs/OffcanvasBody.js +22 -2
- package/cjs/OffcanvasTitle.d.ts +6 -3
- package/cjs/OffcanvasTitle.js +21 -3
- package/cjs/Overlay.js +3 -2
- package/cjs/Popover.d.ts +2 -2
- 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/Tab.d.ts +1 -1
- package/cjs/TabContent.d.ts +6 -2
- package/cjs/TabContent.js +22 -2
- package/cjs/Toast.d.ts +3 -3
- package/cjs/Toast.js +12 -0
- package/cjs/ToastBody.d.ts +6 -2
- package/cjs/ToastBody.js +22 -2
- package/cjs/ToggleButton.d.ts +1 -0
- package/cjs/index.d.ts +71 -9
- package/cjs/index.js +68 -15
- package/dist/react-bootstrap.js +1115 -452
- package/dist/react-bootstrap.min.js +1 -1
- package/esm/Alert.d.ts +2 -2
- package/esm/Alert.js +2 -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/Card.d.ts +7 -7
- package/esm/Card.js +8 -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/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/CarouselCaption.d.ts +6 -2
- package/esm/CarouselCaption.js +21 -2
- package/esm/Dropdown.d.ts +4 -4
- package/esm/Dropdown.js +3 -15
- 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/DropdownItemText.d.ts +6 -0
- package/esm/DropdownItemText.js +21 -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/Form.d.ts +1 -1
- package/esm/FormControl.js +1 -12
- package/esm/FormFloating.d.ts +6 -2
- package/esm/FormFloating.js +21 -2
- package/esm/InputGroup.d.ts +4 -3
- package/esm/InputGroup.js +1 -4
- package/esm/InputGroupText.d.ts +6 -0
- package/esm/InputGroupText.js +21 -0
- package/esm/Modal.d.ts +3 -3
- package/esm/ModalBody.d.ts +6 -2
- package/esm/ModalBody.js +21 -2
- package/esm/ModalFooter.d.ts +6 -2
- package/esm/ModalFooter.js +21 -2
- package/esm/ModalTitle.d.ts +6 -3
- package/esm/ModalTitle.js +21 -4
- package/esm/Nav.d.ts +1 -1
- package/esm/NavDropdown.d.ts +4 -4
- package/esm/NavItem.d.ts +6 -2
- package/esm/NavItem.js +21 -2
- package/esm/Navbar.d.ts +1 -1
- package/esm/Navbar.js +1 -4
- package/esm/NavbarText.d.ts +6 -0
- package/esm/NavbarText.js +21 -0
- package/esm/Offcanvas.d.ts +2 -2
- package/esm/OffcanvasBody.d.ts +6 -2
- package/esm/OffcanvasBody.js +21 -2
- package/esm/OffcanvasTitle.d.ts +6 -3
- package/esm/OffcanvasTitle.js +21 -4
- package/esm/Overlay.js +3 -2
- package/esm/Popover.d.ts +2 -2
- 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/Tab.d.ts +1 -1
- package/esm/TabContent.d.ts +6 -2
- package/esm/TabContent.js +21 -2
- package/esm/Toast.d.ts +3 -3
- package/esm/Toast.js +12 -0
- package/esm/ToastBody.d.ts +6 -2
- package/esm/ToastBody.js +21 -2
- package/esm/ToggleButton.d.ts +1 -0
- package/esm/index.d.ts +71 -9
- package/esm/index.js +33 -7
- package/package.json +1 -1
package/esm/Alert.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
13
13
|
transition?: TransitionType;
|
|
14
14
|
}
|
|
15
15
|
declare const _default: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>> & {
|
|
16
|
-
Link: import("./helpers").BsPrefixRefForwardingComponent<
|
|
17
|
-
Heading: import("./helpers").BsPrefixRefForwardingComponent<
|
|
16
|
+
Link: import("./helpers").BsPrefixRefForwardingComponent<"a", import("./AlertLink").AlertLinkProps>;
|
|
17
|
+
Heading: import("./helpers").BsPrefixRefForwardingComponent<"div", import("./AlertHeading").AlertHeadingProps>;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
package/esm/Alert.js
CHANGED
|
@@ -4,22 +4,13 @@ import classNames from 'classnames';
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useUncontrolled } from 'uncontrollable';
|
|
6
6
|
import useEventCallback from '@restart/hooks/useEventCallback';
|
|
7
|
-
import Anchor from '@restart/ui/Anchor';
|
|
8
7
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
8
|
+
import AlertHeading from './AlertHeading';
|
|
9
|
+
import AlertLink from './AlertLink';
|
|
9
10
|
import Fade from './Fade';
|
|
10
11
|
import CloseButton from './CloseButton';
|
|
11
|
-
import divWithClassName from './divWithClassName';
|
|
12
|
-
import createWithBsPrefix from './createWithBsPrefix';
|
|
13
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
-
const DivStyledAsH4 = divWithClassName('h4');
|
|
16
|
-
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
17
|
-
const AlertHeading = createWithBsPrefix('alert-heading', {
|
|
18
|
-
Component: DivStyledAsH4
|
|
19
|
-
});
|
|
20
|
-
const AlertLink = createWithBsPrefix('alert-link', {
|
|
21
|
-
Component: Anchor
|
|
22
|
-
});
|
|
23
14
|
const Alert = /*#__PURE__*/React.forwardRef((uncontrolledProps, ref) => {
|
|
24
15
|
const {
|
|
25
16
|
bsPrefix,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface AlertHeadingProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const AlertHeading: BsPrefixRefForwardingComponent<'div', AlertHeadingProps>;
|
|
6
|
+
export default AlertHeading;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
+
import divWithClassName from './divWithClassName';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const DivStyledAsH4 = divWithClassName('h4');
|
|
9
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
10
|
+
const AlertHeading = /*#__PURE__*/React.forwardRef(({
|
|
11
|
+
className,
|
|
12
|
+
bsPrefix,
|
|
13
|
+
as: Component = DivStyledAsH4,
|
|
14
|
+
...props
|
|
15
|
+
}, ref) => {
|
|
16
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'alert-heading');
|
|
17
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
18
|
+
ref: ref,
|
|
19
|
+
className: classNames(className, bsPrefix),
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
AlertHeading.displayName = 'AlertHeading';
|
|
24
|
+
export default AlertHeading;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface AlertLinkProps extends BsPrefixProps, React.AnchorHTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const AlertLink: BsPrefixRefForwardingComponent<'a', AlertLinkProps>;
|
|
6
|
+
export default AlertLink;
|
package/esm/AlertLink.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import Anchor from '@restart/ui/Anchor';
|
|
6
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const AlertLink = /*#__PURE__*/React.forwardRef(({
|
|
9
|
+
className,
|
|
10
|
+
bsPrefix,
|
|
11
|
+
as: Component = Anchor,
|
|
12
|
+
...props
|
|
13
|
+
}, ref) => {
|
|
14
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'alert-link');
|
|
15
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
16
|
+
ref: ref,
|
|
17
|
+
className: classNames(className, bsPrefix),
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
AlertLink.displayName = 'AlertLink';
|
|
22
|
+
export default AlertLink;
|
package/esm/Card.d.ts
CHANGED
|
@@ -9,13 +9,13 @@ export interface CardProps extends BsPrefixProps, React.HTMLAttributes<HTMLEleme
|
|
|
9
9
|
}
|
|
10
10
|
declare const _default: BsPrefixRefForwardingComponent<"div", CardProps> & {
|
|
11
11
|
Img: BsPrefixRefForwardingComponent<"img", import("./CardImg").CardImgProps>;
|
|
12
|
-
Title: BsPrefixRefForwardingComponent<
|
|
13
|
-
Subtitle: BsPrefixRefForwardingComponent<
|
|
14
|
-
Body: BsPrefixRefForwardingComponent<"div",
|
|
15
|
-
Link: BsPrefixRefForwardingComponent<"a",
|
|
16
|
-
Text: BsPrefixRefForwardingComponent<"p",
|
|
12
|
+
Title: BsPrefixRefForwardingComponent<"div", import("./CardTitle").CardTitleProps>;
|
|
13
|
+
Subtitle: BsPrefixRefForwardingComponent<"div", import("./CardSubtitle").CardSubtitleProps>;
|
|
14
|
+
Body: BsPrefixRefForwardingComponent<"div", import("./CardBody").CardBodyProps>;
|
|
15
|
+
Link: BsPrefixRefForwardingComponent<"a", import("./CardLink").CardLinkProps>;
|
|
16
|
+
Text: BsPrefixRefForwardingComponent<"p", import("./CardText").CardTextProps>;
|
|
17
17
|
Header: BsPrefixRefForwardingComponent<"div", import("./CardHeader").CardHeaderProps>;
|
|
18
|
-
Footer: BsPrefixRefForwardingComponent<"div",
|
|
19
|
-
ImgOverlay: BsPrefixRefForwardingComponent<"div",
|
|
18
|
+
Footer: BsPrefixRefForwardingComponent<"div", import("./CardFooter").CardFooterProps>;
|
|
19
|
+
ImgOverlay: BsPrefixRefForwardingComponent<"div", import("./CardImgOverlay").CardImgOverlayProps>;
|
|
20
20
|
};
|
|
21
21
|
export default _default;
|
package/esm/Card.js
CHANGED
|
@@ -3,28 +3,16 @@
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import CardImg from './CardImg';
|
|
6
|
+
import CardBody from './CardBody';
|
|
7
|
+
import CardFooter from './CardFooter';
|
|
9
8
|
import CardHeader from './CardHeader';
|
|
9
|
+
import CardImg from './CardImg';
|
|
10
|
+
import CardImgOverlay from './CardImgOverlay';
|
|
11
|
+
import CardLink from './CardLink';
|
|
12
|
+
import CardSubtitle from './CardSubtitle';
|
|
13
|
+
import CardText from './CardText';
|
|
14
|
+
import CardTitle from './CardTitle';
|
|
10
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const DivStyledAsH5 = divWithClassName('h5');
|
|
12
|
-
const DivStyledAsH6 = divWithClassName('h6');
|
|
13
|
-
const CardBody = createWithBsPrefix('card-body');
|
|
14
|
-
const CardTitle = createWithBsPrefix('card-title', {
|
|
15
|
-
Component: DivStyledAsH5
|
|
16
|
-
});
|
|
17
|
-
const CardSubtitle = createWithBsPrefix('card-subtitle', {
|
|
18
|
-
Component: DivStyledAsH6
|
|
19
|
-
});
|
|
20
|
-
const CardLink = createWithBsPrefix('card-link', {
|
|
21
|
-
Component: 'a'
|
|
22
|
-
});
|
|
23
|
-
const CardText = createWithBsPrefix('card-text', {
|
|
24
|
-
Component: 'p'
|
|
25
|
-
});
|
|
26
|
-
const CardFooter = createWithBsPrefix('card-footer');
|
|
27
|
-
const CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
28
16
|
const Card = /*#__PURE__*/React.forwardRef(({
|
|
29
17
|
bsPrefix,
|
|
30
18
|
className,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface CardBodyProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const CardBody: BsPrefixRefForwardingComponent<'div', CardBodyProps>;
|
|
6
|
+
export default CardBody;
|
package/esm/CardBody.js
ADDED
|
@@ -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 CardBody = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'div',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'card-body');
|
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: classNames(className, bsPrefix),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
CardBody.displayName = 'CardBody';
|
|
21
|
+
export default CardBody;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface CardFooterProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const CardFooter: BsPrefixRefForwardingComponent<'div', CardFooterProps>;
|
|
6
|
+
export default CardFooter;
|
|
@@ -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 CardFooter = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'div',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'card-footer');
|
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: classNames(className, bsPrefix),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
CardFooter.displayName = 'CardFooter';
|
|
21
|
+
export default CardFooter;
|
package/esm/CardGroup.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 CardGroupProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const CardGroup: BsPrefixRefForwardingComponent<'div', CardGroupProps>;
|
|
6
|
+
export default CardGroup;
|
package/esm/CardGroup.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 CardGroup = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'div',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'card-group');
|
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: classNames(className, bsPrefix),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
CardGroup.displayName = 'CardGroup';
|
|
21
|
+
export default CardGroup;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface CardImgOverlayProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const CardImgOverlay: BsPrefixRefForwardingComponent<'div', CardImgOverlayProps>;
|
|
6
|
+
export default CardImgOverlay;
|
|
@@ -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 CardImgOverlay = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'div',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'card-img-overlay');
|
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: classNames(className, bsPrefix),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
CardImgOverlay.displayName = 'CardImgOverlay';
|
|
21
|
+
export default CardImgOverlay;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface CardLinkProps extends BsPrefixProps, React.AnchorHTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const CardLink: BsPrefixRefForwardingComponent<'a', CardLinkProps>;
|
|
6
|
+
export default CardLink;
|
package/esm/CardLink.js
ADDED
|
@@ -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 CardLink = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'a',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'card-link');
|
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: classNames(className, bsPrefix),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
CardLink.displayName = 'CardLink';
|
|
21
|
+
export default CardLink;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface CardSubtitleProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const CardSubtitle: BsPrefixRefForwardingComponent<'div', CardSubtitleProps>;
|
|
6
|
+
export default CardSubtitle;
|
|
@@ -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 divWithClassName from './divWithClassName';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const DivStyledAsH6 = divWithClassName('h6');
|
|
9
|
+
const CardSubtitle = /*#__PURE__*/React.forwardRef(({
|
|
10
|
+
className,
|
|
11
|
+
bsPrefix,
|
|
12
|
+
as: Component = DivStyledAsH6,
|
|
13
|
+
...props
|
|
14
|
+
}, ref) => {
|
|
15
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'card-subtitle');
|
|
16
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
className: classNames(className, bsPrefix),
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
CardSubtitle.displayName = 'CardSubtitle';
|
|
23
|
+
export default CardSubtitle;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface CardTextProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const CardText: BsPrefixRefForwardingComponent<'p', CardTextProps>;
|
|
6
|
+
export default CardText;
|
package/esm/CardText.js
ADDED
|
@@ -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 CardText = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'p',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'card-text');
|
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: classNames(className, bsPrefix),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
CardText.displayName = 'CardText';
|
|
21
|
+
export default CardText;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
+
export interface CardTitleProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const CardTitle: BsPrefixRefForwardingComponent<'div', CardTitleProps>;
|
|
6
|
+
export default CardTitle;
|
package/esm/CardTitle.js
ADDED
|
@@ -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 divWithClassName from './divWithClassName';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const DivStyledAsH5 = divWithClassName('h5');
|
|
9
|
+
const CardTitle = /*#__PURE__*/React.forwardRef(({
|
|
10
|
+
className,
|
|
11
|
+
bsPrefix,
|
|
12
|
+
as: Component = DivStyledAsH5,
|
|
13
|
+
...props
|
|
14
|
+
}, ref) => {
|
|
15
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'card-title');
|
|
16
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
className: classNames(className, bsPrefix),
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
CardTitle.displayName = 'CardTitle';
|
|
23
|
+
export default CardTitle;
|
package/esm/Carousel.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface CarouselProps extends BsPrefixProps, Omit<React.HTMLAttributes<
|
|
|
30
30
|
variant?: CarouselVariant;
|
|
31
31
|
}
|
|
32
32
|
declare const _default: BsPrefixRefForwardingComponent<"div", CarouselProps> & {
|
|
33
|
-
Caption: BsPrefixRefForwardingComponent<"div",
|
|
33
|
+
Caption: BsPrefixRefForwardingComponent<"div", import("./CarouselCaption").CarouselCaptionProps>;
|
|
34
34
|
Item: BsPrefixRefForwardingComponent<"div", import("./CarouselItem").CarouselItemProps>;
|
|
35
35
|
};
|
|
36
36
|
export default _default;
|
package/esm/CarouselCaption.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 CarouselCaptionProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const CarouselCaption: BsPrefixRefForwardingComponent<'div', CarouselCaptionProps>;
|
|
6
|
+
export default CarouselCaption;
|
package/esm/CarouselCaption.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 CarouselCaption = /*#__PURE__*/React.forwardRef(({
|
|
8
|
+
className,
|
|
9
|
+
bsPrefix,
|
|
10
|
+
as: Component = 'div',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) => {
|
|
13
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'carousel-caption');
|
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: classNames(className, bsPrefix),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
CarouselCaption.displayName = 'CarouselCaption';
|
|
21
|
+
export default CarouselCaption;
|
package/esm/Dropdown.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ export interface DropdownProps extends BaseDropdownProps, BsPrefixProps, Omit<Re
|
|
|
13
13
|
declare const _default: BsPrefixRefForwardingComponent<"div", DropdownProps> & {
|
|
14
14
|
Toggle: BsPrefixRefForwardingComponent<"button", import("./DropdownToggle").DropdownToggleProps>;
|
|
15
15
|
Menu: BsPrefixRefForwardingComponent<"div", import("./DropdownMenu").DropdownMenuProps>;
|
|
16
|
-
Item: BsPrefixRefForwardingComponent<
|
|
17
|
-
ItemText: BsPrefixRefForwardingComponent<"span",
|
|
18
|
-
Divider: BsPrefixRefForwardingComponent<"hr",
|
|
19
|
-
Header: BsPrefixRefForwardingComponent<"div",
|
|
16
|
+
Item: BsPrefixRefForwardingComponent<"a", import("./DropdownItem").DropdownItemProps>;
|
|
17
|
+
ItemText: BsPrefixRefForwardingComponent<"span", import("./DropdownItemText").DropdownItemTextProps>;
|
|
18
|
+
Divider: BsPrefixRefForwardingComponent<"hr", import("./DropdownDivider").DropdownDividerProps>;
|
|
19
|
+
Header: BsPrefixRefForwardingComponent<"div", import("./DropdownHeader").DropdownHeaderProps>;
|
|
20
20
|
};
|
|
21
21
|
export default _default;
|
package/esm/Dropdown.js
CHANGED
|
@@ -7,28 +7,16 @@ import BaseDropdown from '@restart/ui/Dropdown';
|
|
|
7
7
|
import { useUncontrolled } from 'uncontrollable';
|
|
8
8
|
import useEventCallback from '@restart/hooks/useEventCallback';
|
|
9
9
|
import DropdownContext from './DropdownContext';
|
|
10
|
+
import DropdownDivider from './DropdownDivider';
|
|
11
|
+
import DropdownHeader from './DropdownHeader';
|
|
10
12
|
import DropdownItem from './DropdownItem';
|
|
13
|
+
import DropdownItemText from './DropdownItemText';
|
|
11
14
|
import DropdownMenu, { getDropdownMenuPlacement } from './DropdownMenu';
|
|
12
15
|
import DropdownToggle from './DropdownToggle';
|
|
13
16
|
import InputGroupContext from './InputGroupContext';
|
|
14
17
|
import { useBootstrapPrefix, useIsRTL } from './ThemeProvider';
|
|
15
|
-
import createWithBsPrefix from './createWithBsPrefix';
|
|
16
18
|
import { alignPropType } from './types';
|
|
17
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
-
const DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
19
|
-
defaultProps: {
|
|
20
|
-
role: 'heading'
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
24
|
-
Component: 'hr',
|
|
25
|
-
defaultProps: {
|
|
26
|
-
role: 'separator'
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
const DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
30
|
-
Component: 'span'
|
|
31
|
-
});
|
|
32
20
|
const Dropdown = /*#__PURE__*/React.forwardRef((pProps, ref) => {
|
|
33
21
|
const {
|
|
34
22
|
bsPrefix,
|
|
@@ -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;
|
|
@@ -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/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;
|