Socket
Socket
Sign inDemoInstall

rc-pagination

Package Overview
Dependencies
8
Maintainers
10
Versions
200
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.0 to 3.3.0

dist/~demos/:id/index.html

5

es/KeyCode.js

@@ -1,2 +0,2 @@

export default {
var KeyCode = {
ZERO: 48,

@@ -11,2 +11,3 @@ NINE: 57,

ARROW_DOWN: 40
};
};
export default KeyCode;
export default {
// Options.jsx
items_per_page: '/ oldal',
// '/ page',
jump_to: 'Ugrás',
// 'Goto',
jump_to_confirm: 'megerősít',
// 'confirm',
page: '',
// Pagination.jsx
prev_page: 'Előző oldal',
// 'Previous Page',
next_page: 'Következő oldal',
// 'Next Page',
prev_5: 'Előző 5 oldal',
// 'Previous 5 Pages',
next_5: 'Következő 5 oldal',
// 'Next 5 Pages',
prev_3: 'Előző 3 oldal',
// 'Previous 3 Pages',
next_3: 'Következő 3 oldal',
// 'Next 3 Pages',
page_size: 'Page Size'
};

2

es/locale/ko_KR.js
export default {
// Options.jsx
items_per_page: '/ 쪽',
items_per_page: '/ 페이지',
jump_to: '이동하기',

@@ -5,0 +5,0 @@ jump_to_confirm: '확인하다',

export default {
// Options.jsx
items_per_page: '/ sah.',
jump_to: 'O\'tish',
jump_to: "O'tish",
jump_to_confirm: 'tasdiqlash',

@@ -6,0 +6,0 @@ page: 'Sahifa',

@@ -21,2 +21,7 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";

};
_this.getValidValue = function () {
var goInputText = _this.state.goInputText;
// eslint-disable-next-line no-restricted-globals
return !goInputText || Number.isNaN(goInputText) ? undefined : Number(goInputText);
};
_this.buildOptionText = function (value) {

@@ -65,9 +70,2 @@ return "".concat(value, " ").concat(_this.props.locale.items_per_page);

_createClass(Options, [{
key: "getValidValue",
value: function getValidValue() {
var goInputText = this.state.goInputText;
// eslint-disable-next-line no-restricted-globals
return !goInputText || isNaN(goInputText) ? undefined : Number(goInputText);
}
}, {
key: "getPageSizeOptions",

@@ -85,5 +83,5 @@ value: function getPageSizeOptions() {

// eslint-disable-next-line no-restricted-globals
var numberA = isNaN(Number(a)) ? 0 : Number(a);
var numberA = Number.isNaN(Number(a)) ? 0 : Number(a);
// eslint-disable-next-line no-restricted-globals
var numberB = isNaN(Number(b)) ? 0 : Number(b);
var numberB = Number.isNaN(Number(b)) ? 0 : Number(b);
return numberA - numberB;

@@ -90,0 +88,0 @@ });

import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
/* eslint react/prop-types: 0 */
import classNames from 'classnames';
import React from 'react';
import classNames from 'classnames';
var Pager = function Pager(props) {
var _classNames;
var prefixCls = "".concat(props.rootPrefixCls, "-item");
var cls = classNames(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-active"), props.active), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), !props.page), _defineProperty(_classNames, props.className, !!props.className), _classNames));
var rootPrefixCls = props.rootPrefixCls,
page = props.page,
active = props.active,
className = props.className,
showTitle = props.showTitle,
onClick = props.onClick,
onKeyPress = props.onKeyPress,
itemRender = props.itemRender;
var prefixCls = "".concat(rootPrefixCls, "-item");
var cls = classNames(prefixCls, "".concat(prefixCls, "-").concat(page), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-active"), active), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), !page), _defineProperty(_classNames, props.className, className), _classNames));
var handleClick = function handleClick() {
props.onClick(props.page);
onClick(page);
};
var handleKeyPress = function handleKeyPress(e) {
props.onKeyPress(e, props.onClick, props.page);
onKeyPress(e, onClick, page);
};
return /*#__PURE__*/React.createElement("li", {
title: props.showTitle ? props.page : null,
title: showTitle ? page.toString() : null,
className: cls,
onClick: handleClick,
onKeyPress: handleKeyPress,
tabIndex: "0"
}, props.itemRender(props.page, 'page', /*#__PURE__*/React.createElement("a", {
tabIndex: 0
}, itemRender(page, 'page', /*#__PURE__*/React.createElement("a", {
rel: "nofollow"
}, props.page)));
}, page)));
};
export default Pager;

@@ -9,8 +9,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";

/* eslint react/prop-types: 0 */
import classNames from 'classnames';
import React, { cloneElement, isValidElement } from 'react';
import classNames from 'classnames';
import Pager from './Pager';
import Options from './Options';
import KEYCODE from './KeyCode';
import LOCALE from './locale/zh_CN';
import Options from './Options';
import Pager from './Pager';
function noop() {}

@@ -21,8 +21,8 @@ function isInteger(v) {

// eslint-disable-next-line no-restricted-globals
typeof value === 'number' && !isNaN(value) && isFinite(value) && Math.floor(value) === value
typeof value === 'number' && !Number.isNaN(value) && isFinite(value) && Math.floor(value) === value
);
}
function defaultItemRender(page, type, element) {
var defaultItemRender = function defaultItemRender(page, type, element) {
return element;
}
};
function calculatePage(p, state, props) {

@@ -39,2 +39,3 @@ var pageSize = typeof p === 'undefined' ? state.pageSize : p;

_this = _super.call(this, props);
_this.paginationNode = /*#__PURE__*/React.createRef();
_this.getJumpPrevPage = function () {

@@ -58,5 +59,2 @@ return Math.max(1, _this.state.current - (_this.props.showLessItems ? 3 : 5));

};
_this.savePaginationNode = function (node) {
_this.paginationNode = node;
};
_this.isValid = function (page) {

@@ -207,2 +205,22 @@ var total = _this.props.total;

};
_this.renderPrev = function (prevPage) {
var _this$props3 = _this.props,
prevIcon = _this$props3.prevIcon,
itemRender = _this$props3.itemRender;
var prevButton = itemRender(prevPage, 'prev', _this.getItemIcon(prevIcon, 'prev page'));
var disabled = !_this.hasPrev();
return /*#__PURE__*/isValidElement(prevButton) ? /*#__PURE__*/cloneElement(prevButton, {
disabled: disabled
}) : prevButton;
};
_this.renderNext = function (nextPage) {
var _this$props4 = _this.props,
nextIcon = _this$props4.nextIcon,
itemRender = _this$props4.itemRender;
var nextButton = itemRender(nextPage, 'next', _this.getItemIcon(nextIcon, 'next page'));
var disabled = !_this.hasNext();
return /*#__PURE__*/isValidElement(nextButton) ? /*#__PURE__*/cloneElement(nextButton, {
disabled: disabled
}) : nextButton;
};
var hasOnChange = props.onChange !== noop;

@@ -234,10 +252,11 @@ var hasCurrent = ('current' in props);

key: "componentDidUpdate",
value: function componentDidUpdate(prevProps, prevState) {
value: function componentDidUpdate(_, prevState) {
// When current page change, fix focused style of prev item
// A hacky solution of https://github.com/ant-design/ant-design/issues/8948
var prefixCls = this.props.prefixCls;
if (prevState.current !== this.state.current && this.paginationNode) {
var lastCurrentNode = this.paginationNode.querySelector(".".concat(prefixCls, "-item-").concat(prevState.current));
if (prevState.current !== this.state.current && this.paginationNode.current) {
var lastCurrentNode = this.paginationNode.current.querySelector(".".concat(prefixCls, "-item-").concat(prevState.current));
if (lastCurrentNode && document.activeElement === lastCurrentNode) {
lastCurrentNode.blur();
var _lastCurrentNode$blur;
lastCurrentNode === null || lastCurrentNode === void 0 ? void 0 : (_lastCurrentNode$blur = lastCurrentNode.blur) === null || _lastCurrentNode$blur === void 0 ? void 0 : _lastCurrentNode$blur.call(lastCurrentNode);
}

@@ -256,3 +275,3 @@ }

// eslint-disable-next-line no-restricted-globals
} else if (isNaN(Number(inputValue))) {
} else if (Number.isNaN(Number(inputValue))) {
value = currentInputValue;

@@ -269,6 +288,6 @@ } else if (inputValue >= allPages) {

value: function getShowSizeChanger() {
var _this$props3 = this.props,
showSizeChanger = _this$props3.showSizeChanger,
total = _this$props3.total,
totalBoundaryShowSizeChanger = _this$props3.totalBoundaryShowSizeChanger;
var _this$props5 = this.props,
showSizeChanger = _this$props5.showSizeChanger,
total = _this$props5.total,
totalBoundaryShowSizeChanger = _this$props5.totalBoundaryShowSizeChanger;
if (typeof showSizeChanger !== 'undefined') {

@@ -280,26 +299,2 @@ return showSizeChanger;

}, {
key: "renderPrev",
value: function renderPrev(prevPage) {
var _this$props4 = this.props,
prevIcon = _this$props4.prevIcon,
itemRender = _this$props4.itemRender;
var prevButton = itemRender(prevPage, 'prev', this.getItemIcon(prevIcon, 'prev page'));
var disabled = !this.hasPrev();
return /*#__PURE__*/isValidElement(prevButton) ? /*#__PURE__*/cloneElement(prevButton, {
disabled: disabled
}) : prevButton;
}
}, {
key: "renderNext",
value: function renderNext(nextPage) {
var _this$props5 = this.props,
nextIcon = _this$props5.nextIcon,
itemRender = _this$props5.itemRender;
var nextButton = itemRender(nextPage, 'next', this.getItemIcon(nextIcon, 'next page'));
var disabled = !this.hasNext();
return /*#__PURE__*/isValidElement(nextButton) ? /*#__PURE__*/cloneElement(nextButton, {
disabled: disabled
}) : nextButton;
}
}, {
key: "render",

@@ -332,3 +327,2 @@ value: function render() {

currentInputValue = _this$state2.currentInputValue;
// When hideOnSinglePage is true and there is only 1 page, hide the pager

@@ -381,3 +375,3 @@ if (hideOnSinglePage === true && total <= pageSize) {

style: style,
ref: this.savePaginationNode
ref: this.paginationNode
}, dataOrAriaAttributeProps), totalText, /*#__PURE__*/React.createElement("li", {

@@ -401,3 +395,3 @@ title: showTitle ? locale.prev_page : null,

onBlur: this.handleBlur,
size: "3"
size: 3
}), /*#__PURE__*/React.createElement("span", {

@@ -446,3 +440,3 @@ className: "".concat(prefixCls, "-slash")

onClick: this.jumpPrev,
tabIndex: "0",
tabIndex: 0,
onKeyPress: this.runIfEnterJumpPrev,

@@ -454,3 +448,3 @@ className: classNames("".concat(prefixCls, "-jump-prev"), _defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))

key: "next",
tabIndex: "0",
tabIndex: 0,
onClick: this.jumpNext,

@@ -530,3 +524,3 @@ onKeyPress: this.runIfEnterJumpNext,

style: style,
ref: this.savePaginationNode
ref: this.paginationNode
}, dataOrAriaAttributeProps), totalText, /*#__PURE__*/React.createElement("li", {

@@ -533,0 +527,0 @@ title: showTitle ? locale.prev_page : null,

@@ -7,3 +7,3 @@ "use strict";

exports.default = void 0;
var _default = {
var KeyCode = {
ZERO: 48,

@@ -19,2 +19,3 @@ NINE: 57,

};
var _default = KeyCode;
exports.default = _default;

@@ -10,23 +10,14 @@ "use strict";

items_per_page: '/ oldal',
// '/ page',
jump_to: 'Ugrás',
// 'Goto',
jump_to_confirm: 'megerősít',
// 'confirm',
page: '',
// Pagination.jsx
prev_page: 'Előző oldal',
// 'Previous Page',
next_page: 'Következő oldal',
// 'Next Page',
prev_5: 'Előző 5 oldal',
// 'Previous 5 Pages',
next_5: 'Következő 5 oldal',
// 'Next 5 Pages',
prev_3: 'Előző 3 oldal',
// 'Previous 3 Pages',
next_3: 'Következő 3 oldal',
// 'Next 3 Pages',
page_size: 'Page Size'
};
exports.default = _default;

@@ -9,3 +9,3 @@ "use strict";

// Options.jsx
items_per_page: '/ 쪽',
items_per_page: '/ 페이지',
jump_to: '이동하기',

@@ -12,0 +12,0 @@ jump_to_confirm: '확인하다',

@@ -10,3 +10,3 @@ "use strict";

items_per_page: '/ sah.',
jump_to: 'O\'tish',
jump_to: "O'tish",
jump_to_confirm: 'tasdiqlash',

@@ -13,0 +13,0 @@ page: 'Sahifa',

@@ -28,2 +28,7 @@ "use strict";

};
_this.getValidValue = function () {
var goInputText = _this.state.goInputText;
// eslint-disable-next-line no-restricted-globals
return !goInputText || Number.isNaN(goInputText) ? undefined : Number(goInputText);
};
_this.buildOptionText = function (value) {

@@ -72,9 +77,2 @@ return "".concat(value, " ").concat(_this.props.locale.items_per_page);

(0, _createClass2.default)(Options, [{
key: "getValidValue",
value: function getValidValue() {
var goInputText = this.state.goInputText;
// eslint-disable-next-line no-restricted-globals
return !goInputText || isNaN(goInputText) ? undefined : Number(goInputText);
}
}, {
key: "getPageSizeOptions",

@@ -92,5 +90,5 @@ value: function getPageSizeOptions() {

// eslint-disable-next-line no-restricted-globals
var numberA = isNaN(Number(a)) ? 0 : Number(a);
var numberA = Number.isNaN(Number(a)) ? 0 : Number(a);
// eslint-disable-next-line no-restricted-globals
var numberB = isNaN(Number(b)) ? 0 : Number(b);
var numberB = Number.isNaN(Number(b)) ? 0 : Number(b);
return numberA - numberB;

@@ -97,0 +95,0 @@ });

@@ -9,4 +9,4 @@ "use strict";

var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _classnames = _interopRequireDefault(require("classnames"));
var _react = _interopRequireDefault(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
/* eslint react/prop-types: 0 */

@@ -16,21 +16,29 @@

var _classNames;
var prefixCls = "".concat(props.rootPrefixCls, "-item");
var cls = (0, _classnames.default)(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-active"), props.active), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-disabled"), !props.page), (0, _defineProperty2.default)(_classNames, props.className, !!props.className), _classNames));
var rootPrefixCls = props.rootPrefixCls,
page = props.page,
active = props.active,
className = props.className,
showTitle = props.showTitle,
onClick = props.onClick,
onKeyPress = props.onKeyPress,
itemRender = props.itemRender;
var prefixCls = "".concat(rootPrefixCls, "-item");
var cls = (0, _classnames.default)(prefixCls, "".concat(prefixCls, "-").concat(page), (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-active"), active), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-disabled"), !page), (0, _defineProperty2.default)(_classNames, props.className, className), _classNames));
var handleClick = function handleClick() {
props.onClick(props.page);
onClick(page);
};
var handleKeyPress = function handleKeyPress(e) {
props.onKeyPress(e, props.onClick, props.page);
onKeyPress(e, onClick, page);
};
return /*#__PURE__*/_react.default.createElement("li", {
title: props.showTitle ? props.page : null,
title: showTitle ? page.toString() : null,
className: cls,
onClick: handleClick,
onKeyPress: handleKeyPress,
tabIndex: "0"
}, props.itemRender(props.page, 'page', /*#__PURE__*/_react.default.createElement("a", {
tabIndex: 0
}, itemRender(page, 'page', /*#__PURE__*/_react.default.createElement("a", {
rel: "nofollow"
}, props.page)));
}, page)));
};
var _default = Pager;
exports.default = _default;

@@ -16,8 +16,8 @@ "use strict";

var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _classnames = _interopRequireDefault(require("classnames"));
var _react = _interopRequireWildcard(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _Pager = _interopRequireDefault(require("./Pager"));
var _Options = _interopRequireDefault(require("./Options"));
var _KeyCode = _interopRequireDefault(require("./KeyCode"));
var _zh_CN = _interopRequireDefault(require("./locale/zh_CN"));
var _Options = _interopRequireDefault(require("./Options"));
var _Pager = _interopRequireDefault(require("./Pager"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -32,8 +32,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

// eslint-disable-next-line no-restricted-globals
typeof value === 'number' && !isNaN(value) && isFinite(value) && Math.floor(value) === value
typeof value === 'number' && !Number.isNaN(value) && isFinite(value) && Math.floor(value) === value
);
}
function defaultItemRender(page, type, element) {
var defaultItemRender = function defaultItemRender(page, type, element) {
return element;
}
};
function calculatePage(p, state, props) {

@@ -50,2 +50,3 @@ var pageSize = typeof p === 'undefined' ? state.pageSize : p;

_this = _super.call(this, props);
_this.paginationNode = /*#__PURE__*/_react.default.createRef();
_this.getJumpPrevPage = function () {

@@ -69,5 +70,2 @@ return Math.max(1, _this.state.current - (_this.props.showLessItems ? 3 : 5));

};
_this.savePaginationNode = function (node) {
_this.paginationNode = node;
};
_this.isValid = function (page) {

@@ -218,2 +216,22 @@ var total = _this.props.total;

};
_this.renderPrev = function (prevPage) {
var _this$props3 = _this.props,
prevIcon = _this$props3.prevIcon,
itemRender = _this$props3.itemRender;
var prevButton = itemRender(prevPage, 'prev', _this.getItemIcon(prevIcon, 'prev page'));
var disabled = !_this.hasPrev();
return /*#__PURE__*/(0, _react.isValidElement)(prevButton) ? /*#__PURE__*/(0, _react.cloneElement)(prevButton, {
disabled: disabled
}) : prevButton;
};
_this.renderNext = function (nextPage) {
var _this$props4 = _this.props,
nextIcon = _this$props4.nextIcon,
itemRender = _this$props4.itemRender;
var nextButton = itemRender(nextPage, 'next', _this.getItemIcon(nextIcon, 'next page'));
var disabled = !_this.hasNext();
return /*#__PURE__*/(0, _react.isValidElement)(nextButton) ? /*#__PURE__*/(0, _react.cloneElement)(nextButton, {
disabled: disabled
}) : nextButton;
};
var hasOnChange = props.onChange !== noop;

@@ -245,10 +263,11 @@ var hasCurrent = ('current' in props);

key: "componentDidUpdate",
value: function componentDidUpdate(prevProps, prevState) {
value: function componentDidUpdate(_, prevState) {
// When current page change, fix focused style of prev item
// A hacky solution of https://github.com/ant-design/ant-design/issues/8948
var prefixCls = this.props.prefixCls;
if (prevState.current !== this.state.current && this.paginationNode) {
var lastCurrentNode = this.paginationNode.querySelector(".".concat(prefixCls, "-item-").concat(prevState.current));
if (prevState.current !== this.state.current && this.paginationNode.current) {
var lastCurrentNode = this.paginationNode.current.querySelector(".".concat(prefixCls, "-item-").concat(prevState.current));
if (lastCurrentNode && document.activeElement === lastCurrentNode) {
lastCurrentNode.blur();
var _lastCurrentNode$blur;
lastCurrentNode === null || lastCurrentNode === void 0 ? void 0 : (_lastCurrentNode$blur = lastCurrentNode.blur) === null || _lastCurrentNode$blur === void 0 ? void 0 : _lastCurrentNode$blur.call(lastCurrentNode);
}

@@ -267,3 +286,3 @@ }

// eslint-disable-next-line no-restricted-globals
} else if (isNaN(Number(inputValue))) {
} else if (Number.isNaN(Number(inputValue))) {
value = currentInputValue;

@@ -280,6 +299,6 @@ } else if (inputValue >= allPages) {

value: function getShowSizeChanger() {
var _this$props3 = this.props,
showSizeChanger = _this$props3.showSizeChanger,
total = _this$props3.total,
totalBoundaryShowSizeChanger = _this$props3.totalBoundaryShowSizeChanger;
var _this$props5 = this.props,
showSizeChanger = _this$props5.showSizeChanger,
total = _this$props5.total,
totalBoundaryShowSizeChanger = _this$props5.totalBoundaryShowSizeChanger;
if (typeof showSizeChanger !== 'undefined') {

@@ -291,26 +310,2 @@ return showSizeChanger;

}, {
key: "renderPrev",
value: function renderPrev(prevPage) {
var _this$props4 = this.props,
prevIcon = _this$props4.prevIcon,
itemRender = _this$props4.itemRender;
var prevButton = itemRender(prevPage, 'prev', this.getItemIcon(prevIcon, 'prev page'));
var disabled = !this.hasPrev();
return /*#__PURE__*/(0, _react.isValidElement)(prevButton) ? /*#__PURE__*/(0, _react.cloneElement)(prevButton, {
disabled: disabled
}) : prevButton;
}
}, {
key: "renderNext",
value: function renderNext(nextPage) {
var _this$props5 = this.props,
nextIcon = _this$props5.nextIcon,
itemRender = _this$props5.itemRender;
var nextButton = itemRender(nextPage, 'next', this.getItemIcon(nextIcon, 'next page'));
var disabled = !this.hasNext();
return /*#__PURE__*/(0, _react.isValidElement)(nextButton) ? /*#__PURE__*/(0, _react.cloneElement)(nextButton, {
disabled: disabled
}) : nextButton;
}
}, {
key: "render",

@@ -343,3 +338,2 @@ value: function render() {

currentInputValue = _this$state2.currentInputValue;
// When hideOnSinglePage is true and there is only 1 page, hide the pager

@@ -392,3 +386,3 @@ if (hideOnSinglePage === true && total <= pageSize) {

style: style,
ref: this.savePaginationNode
ref: this.paginationNode
}, dataOrAriaAttributeProps), totalText, /*#__PURE__*/_react.default.createElement("li", {

@@ -412,3 +406,3 @@ title: showTitle ? locale.prev_page : null,

onBlur: this.handleBlur,
size: "3"
size: 3
}), /*#__PURE__*/_react.default.createElement("span", {

@@ -457,3 +451,3 @@ className: "".concat(prefixCls, "-slash")

onClick: this.jumpPrev,
tabIndex: "0",
tabIndex: 0,
onKeyPress: this.runIfEnterJumpPrev,

@@ -465,3 +459,3 @@ className: (0, _classnames.default)("".concat(prefixCls, "-jump-prev"), (0, _defineProperty2.default)({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))

key: "next",
tabIndex: "0",
tabIndex: 0,
onClick: this.jumpNext,

@@ -541,3 +535,3 @@ onKeyPress: this.runIfEnterJumpNext,

style: style,
ref: this.savePaginationNode
ref: this.paginationNode
}, dataOrAriaAttributeProps), totalText, /*#__PURE__*/_react.default.createElement("li", {

@@ -544,0 +538,0 @@ title: showTitle ? locale.prev_page : null,

{
"name": "rc-pagination",
"version": "3.2.0",
"version": "3.3.0",
"description": "pagination ui component for react",

@@ -53,3 +53,3 @@ "keywords": [

"@types/classnames": "^2.2.9",
"@types/jest": "^27.4.0",
"@types/jest": "^29.2.2",
"@types/keyv": "^3.1.4",

@@ -61,3 +61,3 @@ "@types/react": "^18.0.0",

"cross-env": "^7.0.0",
"dumi": "^1.1.7",
"dumi": "^2.1.2",
"enzyme": "^3.0.0",

@@ -64,0 +64,0 @@ "enzyme-adapter-react-16": "^1.0.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc