@elliemae/ds-pagination 2.0.0-rc.2 → 2.0.0-rc.6
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/cjs/Pagination.js +3 -3
- package/cjs/index.js +1 -2
- package/cjs/parts/PerPageSelector.js +2 -1
- package/cjs/props.js +2 -2
- package/esm/Pagination.js +4 -5
- package/esm/index.js +1 -2
- package/esm/parts/PerPageSelector.js +2 -1
- package/esm/props.js +2 -2
- package/package.json +6 -6
- package/types/Pagination.d.ts +2 -2
- package/types/props.d.ts +1 -1
- package/types/styled.d.ts +10 -8
package/cjs/Pagination.js
CHANGED
|
@@ -25,12 +25,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
25
25
|
|
|
26
26
|
const DSPagination = props$1 => {
|
|
27
27
|
const propsWithDefault = dsPropsHelpers.useMemoMergePropsWithDefault(props$1, props.defaultProps);
|
|
28
|
-
dsPropsHelpers.useValidateTypescriptPropTypes(propsWithDefault,
|
|
28
|
+
dsPropsHelpers.useValidateTypescriptPropTypes(propsWithDefault, props.propTypes);
|
|
29
29
|
return /*#__PURE__*/jsxRuntime.jsx(PaginationContent.PaginationContent, _objectSpread({}, propsWithDefault));
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
const DSPaginationWithSchema = reactDesc.describe(DSPagination).description('DSPagination');
|
|
33
|
-
DSPaginationWithSchema.propTypes = props.
|
|
33
|
+
DSPaginationWithSchema.propTypes = props.propTypes;
|
|
34
34
|
|
|
35
|
-
exports.DSPaginationSchema = props.DSPaginationSchema;
|
|
36
35
|
exports.DSPagination = DSPagination;
|
|
36
|
+
exports.DSPaginationWithSchema = DSPaginationWithSchema;
|
package/cjs/index.js
CHANGED
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var Pagination = require('./Pagination.js');
|
|
6
|
-
var props = require('./props.js');
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
exports.DSPagination = Pagination.DSPagination;
|
|
11
|
-
exports.
|
|
10
|
+
exports.DSPaginationWithSchema = Pagination.DSPaginationWithSchema;
|
|
@@ -79,7 +79,8 @@ const PerPageSelector = props => {
|
|
|
79
79
|
startPlacementPreference: "top-end",
|
|
80
80
|
actionRef: actionRef,
|
|
81
81
|
minWidth: width + 25,
|
|
82
|
-
maxHeight: 300
|
|
82
|
+
maxHeight: 300,
|
|
83
|
+
HeaderComp: () => 'Per Page'
|
|
83
84
|
}, void 0, /*#__PURE__*/_jsx__default["default"]("div", {
|
|
84
85
|
style: {
|
|
85
86
|
marginLeft: '32px'
|
package/cjs/props.js
CHANGED
|
@@ -6,7 +6,7 @@ var reactDesc = require('react-desc');
|
|
|
6
6
|
|
|
7
7
|
const emptyFunc = () => null;
|
|
8
8
|
|
|
9
|
-
const
|
|
9
|
+
const propTypes = {
|
|
10
10
|
pageCount: reactDesc.PropTypes.number.description('How many pages are there'),
|
|
11
11
|
pageIndex: reactDesc.PropTypes.number.description('Index of the current page, starting from 1').defaultValue(1),
|
|
12
12
|
canPreviousPage: reactDesc.PropTypes.bool.description('Whether the previous button is disabled or not').defaultValue(true),
|
|
@@ -49,5 +49,5 @@ const defaultProps = {
|
|
|
49
49
|
width: '100%'
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
exports.DSPaginationSchema = DSPaginationSchema;
|
|
53
52
|
exports.defaultProps = defaultProps;
|
|
53
|
+
exports.propTypes = propTypes;
|
package/esm/Pagination.js
CHANGED
|
@@ -8,8 +8,7 @@ import 'react';
|
|
|
8
8
|
import { useMemoMergePropsWithDefault, useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';
|
|
9
9
|
import { describe } from 'react-desc';
|
|
10
10
|
import { PaginationContent } from './parts/PaginationContent.js';
|
|
11
|
-
import {
|
|
12
|
-
export { DSPaginationSchema } from './props.js';
|
|
11
|
+
import { propTypes, defaultProps } from './props.js';
|
|
13
12
|
import { jsx } from 'react/jsx-runtime';
|
|
14
13
|
|
|
15
14
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -18,11 +17,11 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
18
17
|
|
|
19
18
|
const DSPagination = props => {
|
|
20
19
|
const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
|
|
21
|
-
useValidateTypescriptPropTypes(propsWithDefault,
|
|
20
|
+
useValidateTypescriptPropTypes(propsWithDefault, propTypes);
|
|
22
21
|
return /*#__PURE__*/jsx(PaginationContent, _objectSpread({}, propsWithDefault));
|
|
23
22
|
};
|
|
24
23
|
|
|
25
24
|
const DSPaginationWithSchema = describe(DSPagination).description('DSPagination');
|
|
26
|
-
DSPaginationWithSchema.propTypes =
|
|
25
|
+
DSPaginationWithSchema.propTypes = propTypes;
|
|
27
26
|
|
|
28
|
-
export { DSPagination };
|
|
27
|
+
export { DSPagination, DSPaginationWithSchema };
|
package/esm/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { DSPagination } from './Pagination.js';
|
|
2
|
-
export { DSPaginationSchema } from './props.js';
|
|
1
|
+
export { DSPagination, DSPaginationWithSchema } from './Pagination.js';
|
|
@@ -72,7 +72,8 @@ const PerPageSelector = props => {
|
|
|
72
72
|
startPlacementPreference: "top-end",
|
|
73
73
|
actionRef: actionRef,
|
|
74
74
|
minWidth: width + 25,
|
|
75
|
-
maxHeight: 300
|
|
75
|
+
maxHeight: 300,
|
|
76
|
+
HeaderComp: () => 'Per Page'
|
|
76
77
|
}, void 0, /*#__PURE__*/_jsx("div", {
|
|
77
78
|
style: {
|
|
78
79
|
marginLeft: '32px'
|
package/esm/props.js
CHANGED
|
@@ -2,7 +2,7 @@ import { PropTypes } from 'react-desc';
|
|
|
2
2
|
|
|
3
3
|
const emptyFunc = () => null;
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const propTypes = {
|
|
6
6
|
pageCount: PropTypes.number.description('How many pages are there'),
|
|
7
7
|
pageIndex: PropTypes.number.description('Index of the current page, starting from 1').defaultValue(1),
|
|
8
8
|
canPreviousPage: PropTypes.bool.description('Whether the previous button is disabled or not').defaultValue(true),
|
|
@@ -45,4 +45,4 @@ const defaultProps = {
|
|
|
45
45
|
width: '100%'
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { defaultProps, propTypes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-pagination",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Pagination",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
"build": "node ../../scripts/build/build.js"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@elliemae/ds-dropdownmenu": "2.0.0-rc.
|
|
76
|
-
"@elliemae/ds-grid": "2.0.0-rc.
|
|
77
|
-
"@elliemae/ds-icons": "2.0.0-rc.
|
|
78
|
-
"@elliemae/ds-props-helpers": "2.0.0-rc.
|
|
79
|
-
"@elliemae/ds-utilities": "2.0.0-rc.
|
|
75
|
+
"@elliemae/ds-dropdownmenu": "2.0.0-rc.6",
|
|
76
|
+
"@elliemae/ds-grid": "2.0.0-rc.6",
|
|
77
|
+
"@elliemae/ds-icons": "2.0.0-rc.6",
|
|
78
|
+
"@elliemae/ds-props-helpers": "2.0.0-rc.6",
|
|
79
|
+
"@elliemae/ds-utilities": "2.0.0-rc.6",
|
|
80
80
|
"react-desc": "~4.1.3"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
package/types/Pagination.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DSPaginationSchema } from './props';
|
|
3
2
|
import { DSPaginationProps } from './index.d';
|
|
4
3
|
declare const DSPagination: React.ComponentType<DSPaginationProps>;
|
|
5
|
-
|
|
4
|
+
declare const DSPaginationWithSchema: any;
|
|
5
|
+
export { DSPagination, DSPaginationWithSchema };
|
package/types/props.d.ts
CHANGED
package/types/styled.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const PaginationContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>,
|
|
3
|
-
export declare const PaginationWrapper: import("styled-components").StyledComponent<"div",
|
|
4
|
-
export declare const PaginationSeparator: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>,
|
|
5
|
-
export declare const PaginationBoldText: import("styled-components").StyledComponent<"span",
|
|
2
|
+
export declare const PaginationContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const PaginationWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const PaginationSeparator: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const PaginationBoldText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, any, never>;
|
|
6
6
|
export declare const PaginationDropdownButton: import("styled-components").StyledComponent<{
|
|
7
|
-
(props: import("@elliemae/ds-button/types/v2/
|
|
7
|
+
(props: import("@elliemae/ds-button/types/v2/propTypes").DSButtonPropsT): JSX.Element;
|
|
8
8
|
propTypes: {
|
|
9
9
|
id: any;
|
|
10
10
|
buttonType: any;
|
|
@@ -22,10 +22,11 @@ export declare const PaginationDropdownButton: import("styled-components").Style
|
|
|
22
22
|
'data-testid': any;
|
|
23
23
|
role: any;
|
|
24
24
|
children: any;
|
|
25
|
+
'data-testemulatestate': any;
|
|
25
26
|
};
|
|
26
|
-
},
|
|
27
|
+
}, import("styled-components").DefaultTheme, {}, never>;
|
|
27
28
|
export declare const PreviousNextPageButton: import("styled-components").StyledComponent<{
|
|
28
|
-
(props: import("@elliemae/ds-button/types/v2/
|
|
29
|
+
(props: import("@elliemae/ds-button/types/v2/propTypes").DSButtonPropsT): JSX.Element;
|
|
29
30
|
propTypes: {
|
|
30
31
|
id: any;
|
|
31
32
|
buttonType: any;
|
|
@@ -43,5 +44,6 @@ export declare const PreviousNextPageButton: import("styled-components").StyledC
|
|
|
43
44
|
'data-testid': any;
|
|
44
45
|
role: any;
|
|
45
46
|
children: any;
|
|
47
|
+
'data-testemulatestate': any;
|
|
46
48
|
};
|
|
47
|
-
},
|
|
49
|
+
}, import("styled-components").DefaultTheme, {}, never>;
|