@elliemae/ds-pagination 3.0.0-next.1 → 3.0.0-next.13
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/dist/cjs/Pagination.js +61 -0
- package/dist/cjs/Pagination.js.map +7 -0
- package/dist/cjs/PaginationDataTestID.js +39 -0
- package/dist/cjs/PaginationDataTestID.js.map +7 -0
- package/dist/cjs/hooks/usePaginationSearch.js +60 -0
- package/dist/cjs/hooks/usePaginationSearch.js.map +7 -0
- package/dist/cjs/index.d.js +27 -0
- package/dist/cjs/index.d.js.map +7 -0
- package/dist/cjs/index.js +28 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/parts/PageNextButton.js +53 -0
- package/dist/cjs/parts/PageNextButton.js.map +7 -0
- package/dist/cjs/parts/PagePrevButton.js +49 -0
- package/dist/cjs/parts/PagePrevButton.js.map +7 -0
- package/dist/cjs/parts/PaginationContent.js +111 -0
- package/dist/cjs/parts/PaginationContent.js.map +7 -0
- package/dist/cjs/parts/Paginator.js +148 -0
- package/dist/cjs/parts/Paginator.js.map +7 -0
- package/dist/cjs/parts/PerPageSelector.js +106 -0
- package/dist/cjs/parts/PerPageSelector.js.map +7 -0
- package/dist/cjs/props.js +82 -0
- package/dist/cjs/props.js.map +7 -0
- package/dist/cjs/styled.js +130 -0
- package/dist/cjs/styled.js.map +7 -0
- package/dist/esm/Pagination.js +34 -0
- package/dist/esm/Pagination.js.map +7 -0
- package/dist/esm/PaginationDataTestID.js +10 -0
- package/dist/esm/PaginationDataTestID.js.map +7 -0
- package/{esm → dist/esm}/hooks/usePaginationSearch.js +16 -13
- package/dist/esm/hooks/usePaginationSearch.js.map +7 -0
- package/dist/esm/index.d.js +2 -0
- package/dist/esm/index.d.js.map +7 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/parts/PageNextButton.js +24 -0
- package/dist/esm/parts/PageNextButton.js.map +7 -0
- package/dist/esm/parts/PagePrevButton.js +20 -0
- package/dist/esm/parts/PagePrevButton.js.map +7 -0
- package/dist/esm/parts/PaginationContent.js +84 -0
- package/dist/esm/parts/PaginationContent.js.map +7 -0
- package/dist/esm/parts/Paginator.js +124 -0
- package/dist/esm/parts/Paginator.js.map +7 -0
- package/dist/esm/parts/PerPageSelector.js +77 -0
- package/dist/esm/parts/PerPageSelector.js.map +7 -0
- package/dist/esm/props.js +53 -0
- package/dist/esm/props.js.map +7 -0
- package/dist/esm/styled.js +106 -0
- package/dist/esm/styled.js.map +7 -0
- package/package.json +51 -41
- package/cjs/Pagination.js +0 -36
- package/cjs/PaginationDataTestID.js +0 -11
- package/cjs/hooks/usePaginationSearch.js +0 -32
- package/cjs/index.d.js +0 -2
- package/cjs/index.js +0 -10
- package/cjs/parts/PageNextButton.js +0 -33
- package/cjs/parts/PagePrevButton.js +0 -32
- package/cjs/parts/PaginationContent.js +0 -78
- package/cjs/parts/Paginator.js +0 -143
- package/cjs/parts/PerPageSelector.js +0 -98
- package/cjs/props.js +0 -53
- package/cjs/styled.js +0 -48
- package/esm/Pagination.js +0 -27
- package/esm/PaginationDataTestID.js +0 -7
- package/esm/index.d.js +0 -1
- package/esm/index.js +0 -1
- package/esm/parts/PageNextButton.js +0 -25
- package/esm/parts/PagePrevButton.js +0 -24
- package/esm/parts/PaginationContent.js +0 -69
- package/esm/parts/Paginator.js +0 -136
- package/esm/parts/PerPageSelector.js +0 -91
- package/esm/props.js +0 -48
- package/esm/styled.js +0 -34
- package/types/Pagination.d.ts +0 -5
- package/types/PaginationDataTestID.d.ts +0 -5
- package/types/hooks/usePaginationSearch.d.ts +0 -1
- package/types/index.d.ts +0 -1
- package/types/parts/PageNextButton.d.ts +0 -3
- package/types/parts/PagePrevButton.d.ts +0 -3
- package/types/parts/PaginationContent.d.ts +0 -3
- package/types/parts/Paginator.d.ts +0 -4
- package/types/parts/PerPageSelector.d.ts +0 -4
- package/types/props.d.ts +0 -75
- package/types/styled.d.ts +0 -14
package/esm/styled.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import Grid from '@elliemae/ds-grid';
|
|
2
|
-
import { DSButtonV2 } from '@elliemae/ds-button';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { typography, space } from '@xstyled/styled-components';
|
|
5
|
-
|
|
6
|
-
const sizeToCss = size => typeof size === 'number' && !Number.isNaN(size) ? "".concat(size, "px") : size;
|
|
7
|
-
|
|
8
|
-
const styledFocusCss = _ref => {
|
|
9
|
-
let {
|
|
10
|
-
theme
|
|
11
|
-
} = _ref;
|
|
12
|
-
return "\n&:after {\n display: block;\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border: 2px solid ".concat(theme.colors.brand[700], ";\n pointer-events: none;\n z-index: 7;\n}");
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const PaginationContainer = /*#__PURE__*/styled(Grid).withConfig({
|
|
16
|
-
componentId: "sc-mxz59e-0"
|
|
17
|
-
})(["padding:0 ", ";height:42px;width:", ";max-width:100%;align-items:center;box-shadow:0 -1px 3px 0 rgba(0,0,0,0.5);"], props => props.theme.space.xs, props => sizeToCss(props.width) || '100%');
|
|
18
|
-
const PaginationWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
19
|
-
componentId: "sc-mxz59e-1"
|
|
20
|
-
})(["display:flex;justify-content:center;align-items:center;margin:0 32px;"]);
|
|
21
|
-
const PaginationSeparator = /*#__PURE__*/styled(Grid).withConfig({
|
|
22
|
-
componentId: "sc-mxz59e-2"
|
|
23
|
-
})(["background-color:", ";width:1px;height:", ";"], props => props.theme.colors.neutral[300], props => props.height || '30px');
|
|
24
|
-
const PaginationBoldText = /*#__PURE__*/styled.span.withConfig({
|
|
25
|
-
componentId: "sc-mxz59e-3"
|
|
26
|
-
})(["font-weight:", ";", " ", " position:relative;"], props => props.theme.fontWeights.semibold, typography, space);
|
|
27
|
-
const PaginationDropdownButton = /*#__PURE__*/styled(DSButtonV2).withConfig({
|
|
28
|
-
componentId: "sc-mxz59e-4"
|
|
29
|
-
})(["height:42px;display:flex;justify-content:center;align-items:center;position:relative;padding-left:16px;padding-right:16px;grid-gap:8px;font-size:13px;color:", ";cursor:pointer;border-radius:0;font-weight:", ";:focus{", "}"], props => props.theme.colors.neutral[700], props => props.theme.fontWeights.regular, styledFocusCss);
|
|
30
|
-
const PreviousNextPageButton = /*#__PURE__*/styled(DSButtonV2).withConfig({
|
|
31
|
-
componentId: "sc-mxz59e-5"
|
|
32
|
-
})(["height:42px;display:grid;place-items:center;position:relative;padding-left:8px;padding-right:8px;border-radius:0;cursor:", ";:focus{", "}"], props => props.disabled ? 'not-allowed' : 'pointer', styledFocusCss);
|
|
33
|
-
|
|
34
|
-
export { PaginationBoldText, PaginationContainer, PaginationDropdownButton, PaginationSeparator, PaginationWrapper, PreviousNextPageButton };
|
package/types/Pagination.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const usePaginationSearch: (pageCount: number, actionRef: React.MutableRefObject<any>) => React.KeyboardEventHandler;
|
package/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Pagination';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DSPaginationProps } from '../index.d';
|
|
3
|
-
declare const PerPageSelector: React.ComponentType<Pick<DSPaginationProps, 'pageSize' | 'onPageSizeChange' | 'perPageOptions' | 'perPageStep' | 'minPerPage' | 'maxPerPage'>>;
|
|
4
|
-
export default PerPageSelector;
|
package/types/props.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
export declare const propTypes: {
|
|
3
|
-
pageCount: {
|
|
4
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
5
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
6
|
-
};
|
|
7
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
8
|
-
};
|
|
9
|
-
pageIndex: {
|
|
10
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
11
|
-
};
|
|
12
|
-
canPreviousPage: {
|
|
13
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
-
};
|
|
15
|
-
canNextPage: {
|
|
16
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
17
|
-
};
|
|
18
|
-
pageSize: {
|
|
19
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
20
|
-
};
|
|
21
|
-
showPerPageSelector: {
|
|
22
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
-
};
|
|
24
|
-
perPageOptions: {
|
|
25
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
-
};
|
|
27
|
-
perPageStep: {
|
|
28
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
29
|
-
};
|
|
30
|
-
minPerPage: {
|
|
31
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
-
};
|
|
33
|
-
maxPerPage: {
|
|
34
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
-
};
|
|
36
|
-
onPageSizeChange: {
|
|
37
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
38
|
-
};
|
|
39
|
-
onPreviousPage: {
|
|
40
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
41
|
-
};
|
|
42
|
-
onPageChange: {
|
|
43
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
44
|
-
};
|
|
45
|
-
onNextPage: {
|
|
46
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
47
|
-
};
|
|
48
|
-
pageDetails: {
|
|
49
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
50
|
-
};
|
|
51
|
-
pageDetailsTitle: {
|
|
52
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
53
|
-
};
|
|
54
|
-
width: {
|
|
55
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
export declare const defaultProps: {
|
|
59
|
-
pageIndex: number;
|
|
60
|
-
canPreviousPage: boolean;
|
|
61
|
-
canNextPage: boolean;
|
|
62
|
-
pageSize: number;
|
|
63
|
-
showPerPageSelector: boolean;
|
|
64
|
-
perPageOptions: number[];
|
|
65
|
-
perPageStep: number;
|
|
66
|
-
minPerPage: number;
|
|
67
|
-
maxPerPage: number;
|
|
68
|
-
onPageSizeChange: () => void;
|
|
69
|
-
onPreviousPage: () => void;
|
|
70
|
-
onNextPage: () => void;
|
|
71
|
-
onPageChange: () => void;
|
|
72
|
-
pageDetails: never[];
|
|
73
|
-
pageDetailsTitle: string;
|
|
74
|
-
width: string;
|
|
75
|
-
};
|
package/types/styled.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TypographyProps } from '@xstyled/styled-components';
|
|
3
|
-
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>;
|
|
4
|
-
export declare const PaginationWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
-
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>;
|
|
6
|
-
export declare const PaginationBoldText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, TypographyProps<import("@xstyled/system").Theme>, never>;
|
|
7
|
-
export declare const PaginationDropdownButton: import("styled-components").StyledComponent<{
|
|
8
|
-
(props: import("@elliemae/ds-button/types/v2/propTypes").DSButtonPropsT): JSX.Element;
|
|
9
|
-
propTypes: import("react").WeakValidationMap<unknown>;
|
|
10
|
-
}, import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
-
export declare const PreviousNextPageButton: import("styled-components").StyledComponent<{
|
|
12
|
-
(props: import("@elliemae/ds-button/types/v2/propTypes").DSButtonPropsT): JSX.Element;
|
|
13
|
-
propTypes: import("react").WeakValidationMap<unknown>;
|
|
14
|
-
}, import("styled-components").DefaultTheme, {}, never>;
|