Socket
Socket
Sign inDemoInstall

rc-pagination

Package Overview
Dependencies
10
Maintainers
10
Versions
199
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

es/locale/ne_NP.js

2

es/index.d.ts
export { default } from './Pagination';
export type { PaginationProps } from './interface';
export type * from './interface';

@@ -42,3 +42,3 @@ import type React from 'react';

}
export interface PaginationProps extends Partial<PaginationData> {
export interface PaginationProps extends Partial<PaginationData>, React.AriaAttributes {
onChange?: (page: number, pageSize: number) => void;

@@ -48,2 +48,3 @@ onShowSizeChange?: (current: number, size: number) => void;

showTotal?: (total: number, range: [number, number]) => React.ReactNode;
role?: React.AriaRole | undefined;
}

@@ -50,0 +51,0 @@ export interface PaginationState {

@@ -26,3 +26,3 @@ import type { SelectProps } from 'rc-select';

}
declare function Options(props: OptionsProps): React.JSX.Element;
declare const Options: React.FC<OptionsProps>;
export default Options;

@@ -5,3 +5,3 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";

var defaultPageSizeOptions = ['10', '20', '50', '100'];
function Options(props) {
var Options = function Options(props) {
var _props$pageSizeOption = props.pageSizeOptions,

@@ -128,3 +128,6 @@ pageSizeOptions = _props$pageSizeOption === void 0 ? defaultPageSizeOptions : _props$pageSizeOption,

}, changeSelect, goInput);
};
if (process.env.NODE_ENV !== 'production') {
Options.displayName = 'Options';
}
export default Options;

@@ -34,2 +34,5 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

};
if (process.env.NODE_ENV !== 'production') {
Pager.displayName = 'Pager';
}
export default Pager;
import React from 'react';
import type { PaginationProps } from './interface';
declare function Pagination(props: PaginationProps): React.JSX.Element;
declare const Pagination: React.FC<PaginationProps>;
export default Pagination;

@@ -26,3 +26,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

}
function Pagination(props) {
var Pagination = function Pagination(props) {
var _classNames5;

@@ -435,3 +435,6 @@ var _props$prefixCls = props.prefixCls,

}));
};
if (process.env.NODE_ENV !== 'production') {
Pagination.displayName = 'Pagination';
}
export default Pagination;
export { default } from './Pagination';
export type { PaginationProps } from './interface';
export type * from './interface';

@@ -42,3 +42,3 @@ import type React from 'react';

}
export interface PaginationProps extends Partial<PaginationData> {
export interface PaginationProps extends Partial<PaginationData>, React.AriaAttributes {
onChange?: (page: number, pageSize: number) => void;

@@ -48,2 +48,3 @@ onShowSizeChange?: (current: number, size: number) => void;

showTotal?: (total: number, range: [number, number]) => React.ReactNode;
role?: React.AriaRole | undefined;
}

@@ -50,0 +51,0 @@ export interface PaginationState {

@@ -26,3 +26,3 @@ import type { SelectProps } from 'rc-select';

}
declare function Options(props: OptionsProps): React.JSX.Element;
declare const Options: React.FC<OptionsProps>;
export default Options;

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

var defaultPageSizeOptions = ['10', '20', '50', '100'];
function Options(props) {
var Options = function Options(props) {
var _props$pageSizeOption = props.pageSizeOptions,

@@ -135,3 +135,6 @@ pageSizeOptions = _props$pageSizeOption === void 0 ? defaultPageSizeOptions : _props$pageSizeOption,

}, changeSelect, goInput);
};
if (process.env.NODE_ENV !== 'production') {
Options.displayName = 'Options';
}
var _default = exports.default = Options;

@@ -42,2 +42,5 @@ "use strict";

};
if (process.env.NODE_ENV !== 'production') {
Pager.displayName = 'Pager';
}
var _default = exports.default = Pager;
import React from 'react';
import type { PaginationProps } from './interface';
declare function Pagination(props: PaginationProps): React.JSX.Element;
declare const Pagination: React.FC<PaginationProps>;
export default Pagination;

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

}
function Pagination(props) {
var Pagination = function Pagination(props) {
var _classNames5;

@@ -442,3 +442,6 @@ var _props$prefixCls = props.prefixCls,

}));
};
if (process.env.NODE_ENV !== 'production') {
Pagination.displayName = 'Pagination';
}
var _default = exports.default = Pagination;
{
"name": "rc-pagination",
"version": "4.0.0",
"version": "4.0.1",
"description": "pagination ui component for react",

@@ -15,3 +15,2 @@ "keywords": [

"module": "./es/index",
"types": "rc-pagination.d.ts",
"files": [

@@ -21,4 +20,3 @@ "assets/*.css",

"es",
"lib",
"rc-pagination.d.ts"
"lib"
],

@@ -55,2 +53,4 @@ "homepage": "https://react-component.github.io/pagination",

"@rc-component/father-plugin": "^1.0.0",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^14.0.0",
"@types/classnames": "^2.2.9",

@@ -61,9 +61,6 @@ "@types/jest": "^29.2.2",

"@types/react-dom": "^18.0.0",
"@umijs/fabric": "^2.0.3",
"@umijs/fabric": "^4.0.1",
"coveralls": "^3.0.6",
"cross-env": "^7.0.0",
"dumi": "^2.1.2",
"enzyme": "^3.0.0",
"enzyme-adapter-react-16": "^1.15.6",
"enzyme-to-json": "^3.4.0",
"eslint": "^8.54.0",

@@ -73,14 +70,14 @@ "eslint-plugin-jest": "^27.6.0",

"father": "^4.0.0",
"gh-pages": "^4.0.0",
"glob": "^7.1.6",
"gh-pages": "^6.1.0",
"glob": "^10.3.10",
"husky": "^8.0.3",
"identity-obj-proxy": "^3.0.0",
"less": "^3.10.3",
"less": "^4.1.3",
"lint-staged": "^15.0.2",
"np": "^7.0.0",
"prettier": "^2.0.1",
"np": "^9.0.0",
"prettier": "^3.1.0",
"rc-select": "^14.1.2",
"rc-test": "^7.0.15",
"react": "^16.0.0",
"react-dom": "^16.0.0"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},

@@ -87,0 +84,0 @@ "peerDependencies": {

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