1 | import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
2 | import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
3 | import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
4 | import classNames from 'classnames';
|
5 | import React from 'react';
|
6 | import PaginationItem, { First, Prev, Ellipsis, Next, Last } from './PaginationItem';
|
7 | import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
|
8 |
|
9 | var Pagination =
|
10 |
|
11 | function (_React$Component) {
|
12 | _inheritsLoose(Pagination, _React$Component);
|
13 |
|
14 | function Pagination() {
|
15 | return _React$Component.apply(this, arguments) || this;
|
16 | }
|
17 |
|
18 | var _proto = Pagination.prototype;
|
19 |
|
20 | _proto.render = function render() {
|
21 | var _this$props = this.props,
|
22 | className = _this$props.className,
|
23 | children = _this$props.children,
|
24 | props = _objectWithoutPropertiesLoose(_this$props, ["className", "children"]);
|
25 |
|
26 | var _splitBsProps = splitBsProps(props),
|
27 | bsProps = _splitBsProps[0],
|
28 | elementProps = _splitBsProps[1];
|
29 |
|
30 | var classes = getClassSet(bsProps);
|
31 | return React.createElement("ul", _extends({}, elementProps, {
|
32 | className: classNames(className, classes)
|
33 | }), children);
|
34 | };
|
35 |
|
36 | return Pagination;
|
37 | }(React.Component);
|
38 |
|
39 | bsClass('pagination', Pagination);
|
40 | Pagination.First = First;
|
41 | Pagination.Prev = Prev;
|
42 | Pagination.Ellipsis = Ellipsis;
|
43 | Pagination.Item = PaginationItem;
|
44 | Pagination.Next = Next;
|
45 | Pagination.Last = Last;
|
46 | export default Pagination; |
\ | No newline at end of file |