You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
931 B
36 lines
931 B
import classNames from 'classnames';
|
|
import * as React from 'react';
|
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
import PageItem, { Ellipsis, First, Last, Next, Prev } from './PageItem';
|
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
|
/**
|
|
* @property {PageItem} Item
|
|
* @property {PageItem} First
|
|
* @property {PageItem} Prev
|
|
* @property {PageItem} Ellipsis
|
|
* @property {PageItem} Next
|
|
* @property {PageItem} Last
|
|
*/
|
|
const Pagination = /*#__PURE__*/React.forwardRef(({
|
|
bsPrefix,
|
|
className,
|
|
size,
|
|
...props
|
|
}, ref) => {
|
|
const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
return /*#__PURE__*/_jsx("ul", {
|
|
ref: ref,
|
|
...props,
|
|
className: classNames(className, decoratedBsPrefix, size && `${decoratedBsPrefix}-${size}`)
|
|
});
|
|
});
|
|
Pagination.displayName = 'Pagination';
|
|
export default Object.assign(Pagination, {
|
|
First,
|
|
Prev,
|
|
Ellipsis,
|
|
Item: PageItem,
|
|
Next,
|
|
Last
|
|
}); |