@elliemae/ds-pagination 3.16.0-next.2 → 3.16.0-next.20

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.
Files changed (136) hide show
  1. package/dist/cjs/DSPaginationDefinitions.js +17 -1
  2. package/dist/cjs/DSPaginationDefinitions.js.map +2 -2
  3. package/dist/cjs/Pagination.js +11 -7
  4. package/dist/cjs/Pagination.js.map +2 -2
  5. package/dist/cjs/PaginationDataTestID.js +7 -1
  6. package/dist/cjs/PaginationDataTestID.js.map +2 -2
  7. package/dist/cjs/index.js +36 -2
  8. package/dist/cjs/index.js.map +3 -3
  9. package/dist/cjs/package.json +7 -0
  10. package/dist/cjs/parts/DSPageNextButton.js +74 -0
  11. package/dist/cjs/parts/DSPageNextButton.js.map +7 -0
  12. package/dist/cjs/parts/DSPagePrevButton.js +74 -0
  13. package/dist/cjs/parts/DSPagePrevButton.js.map +7 -0
  14. package/dist/cjs/parts/DSPaginationContainer.js +61 -0
  15. package/dist/cjs/parts/DSPaginationContainer.js.map +7 -0
  16. package/dist/cjs/parts/DSPaginator/createPaginatorHeader.js +50 -0
  17. package/dist/cjs/parts/DSPaginator/createPaginatorHeader.js.map +7 -0
  18. package/dist/cjs/parts/DSPaginator/getOptions.js +76 -0
  19. package/dist/cjs/parts/DSPaginator/getOptions.js.map +7 -0
  20. package/dist/cjs/parts/DSPaginator/index.js +148 -0
  21. package/dist/cjs/parts/DSPaginator/index.js.map +7 -0
  22. package/dist/cjs/{hooks → parts/DSPaginator}/usePaginationSearch.js +9 -2
  23. package/dist/cjs/parts/DSPaginator/usePaginationSearch.js.map +7 -0
  24. package/dist/cjs/parts/DSPaginator/usePaginator.js +91 -0
  25. package/dist/cjs/parts/DSPaginator/usePaginator.js.map +7 -0
  26. package/dist/cjs/parts/{PagePrevButton.js → DSPerPageSelector/getOptions.js} +25 -22
  27. package/dist/cjs/parts/DSPerPageSelector/getOptions.js.map +7 -0
  28. package/dist/cjs/parts/DSPerPageSelector/index.js +106 -0
  29. package/dist/cjs/parts/DSPerPageSelector/index.js.map +7 -0
  30. package/dist/cjs/parts/DSPerPageSelector/usePerPageSelector.js +72 -0
  31. package/dist/cjs/parts/DSPerPageSelector/usePerPageSelector.js.map +7 -0
  32. package/dist/cjs/parts/PaginationContent.js +41 -52
  33. package/dist/cjs/parts/PaginationContent.js.map +3 -3
  34. package/dist/cjs/parts/index.js +49 -0
  35. package/dist/cjs/parts/index.js.map +7 -0
  36. package/dist/cjs/props.js +85 -0
  37. package/dist/cjs/props.js.map +7 -0
  38. package/dist/cjs/react-desc-prop-types.js +111 -33
  39. package/dist/cjs/react-desc-prop-types.js.map +2 -2
  40. package/dist/cjs/styled.js +21 -27
  41. package/dist/cjs/styled.js.map +2 -2
  42. package/dist/esm/DSPaginationDefinitions.js +13 -1
  43. package/dist/esm/DSPaginationDefinitions.js.map +2 -2
  44. package/dist/esm/Pagination.js +4 -4
  45. package/dist/esm/Pagination.js.map +1 -1
  46. package/dist/esm/PaginationDataTestID.js +3 -1
  47. package/dist/esm/PaginationDataTestID.js.map +2 -2
  48. package/dist/esm/index.js +39 -1
  49. package/dist/esm/index.js.map +3 -3
  50. package/dist/esm/package.json +7 -0
  51. package/dist/esm/parts/DSPageNextButton.js +50 -0
  52. package/dist/esm/parts/DSPageNextButton.js.map +7 -0
  53. package/dist/esm/parts/DSPagePrevButton.js +50 -0
  54. package/dist/esm/parts/DSPagePrevButton.js.map +7 -0
  55. package/dist/esm/parts/DSPaginationContainer.js +31 -0
  56. package/dist/esm/parts/DSPaginationContainer.js.map +7 -0
  57. package/dist/esm/parts/DSPaginator/createPaginatorHeader.js +20 -0
  58. package/dist/esm/parts/DSPaginator/createPaginatorHeader.js.map +7 -0
  59. package/dist/esm/parts/DSPaginator/getOptions.js +46 -0
  60. package/dist/esm/parts/DSPaginator/getOptions.js.map +7 -0
  61. package/dist/esm/parts/DSPaginator/index.js +118 -0
  62. package/dist/esm/parts/DSPaginator/index.js.map +7 -0
  63. package/dist/esm/{hooks → parts/DSPaginator}/usePaginationSearch.js +5 -2
  64. package/dist/esm/parts/DSPaginator/usePaginationSearch.js.map +7 -0
  65. package/dist/esm/parts/DSPaginator/usePaginator.js +61 -0
  66. package/dist/esm/parts/DSPaginator/usePaginator.js.map +7 -0
  67. package/dist/esm/parts/DSPerPageSelector/getOptions.js +22 -0
  68. package/dist/esm/parts/DSPerPageSelector/getOptions.js.map +7 -0
  69. package/dist/esm/parts/DSPerPageSelector/index.js +76 -0
  70. package/dist/esm/parts/DSPerPageSelector/index.js.map +7 -0
  71. package/dist/esm/parts/DSPerPageSelector/usePerPageSelector.js +42 -0
  72. package/dist/esm/parts/DSPerPageSelector/usePerPageSelector.js.map +7 -0
  73. package/dist/esm/parts/PaginationContent.js +37 -52
  74. package/dist/esm/parts/PaginationContent.js.map +2 -2
  75. package/dist/esm/parts/index.js +19 -0
  76. package/dist/esm/parts/index.js.map +7 -0
  77. package/dist/esm/props.js +55 -0
  78. package/dist/esm/props.js.map +7 -0
  79. package/dist/esm/react-desc-prop-types.js +88 -14
  80. package/dist/esm/react-desc-prop-types.js.map +2 -2
  81. package/dist/esm/styled.js +15 -25
  82. package/dist/esm/styled.js.map +2 -2
  83. package/dist/types/DSPaginationDefinitions.d.ts +6 -0
  84. package/dist/types/Pagination.d.ts +2 -2
  85. package/dist/types/PaginationDataTestID.d.ts +2 -0
  86. package/dist/types/index.d.ts +17 -1
  87. package/dist/types/parts/DSPageNextButton.d.ts +4 -0
  88. package/dist/types/parts/DSPagePrevButton.d.ts +4 -0
  89. package/dist/types/parts/DSPaginationContainer.d.ts +4 -0
  90. package/dist/types/parts/DSPaginator/createPaginatorHeader.d.ts +6 -0
  91. package/dist/types/parts/DSPaginator/getOptions.d.ts +7 -0
  92. package/dist/types/parts/DSPaginator/index.d.ts +4 -0
  93. package/dist/types/parts/DSPaginator/usePaginationSearch.d.ts +2 -0
  94. package/dist/types/parts/DSPaginator/usePaginator.d.ts +17 -0
  95. package/dist/types/parts/DSPerPageSelector/getOptions.d.ts +3 -0
  96. package/dist/types/parts/DSPerPageSelector/index.d.ts +4 -0
  97. package/dist/types/parts/DSPerPageSelector/usePerPageSelector.d.ts +13 -0
  98. package/dist/types/parts/PaginationContent.d.ts +1 -1
  99. package/dist/types/parts/index.d.ts +5 -0
  100. package/dist/types/props.d.ts +20 -0
  101. package/dist/types/react-desc-prop-types.d.ts +528 -9
  102. package/dist/types/styled.d.ts +7 -9
  103. package/dist/types/tests/a11y/axe.test.d.ts +1 -0
  104. package/dist/types/tests/callbacks/paginator.test.d.ts +1 -0
  105. package/dist/types/tests/callbacks/per-page-selector.test.d.ts +1 -0
  106. package/dist/types/tests/callbacks/prev-next-buttons.test.d.ts +1 -0
  107. package/dist/types/tests/keyboard/navigation.test.d.ts +1 -0
  108. package/dist/types/tests/keyboard/paginator-search.test.d.ts +1 -0
  109. package/dist/types/tests/render/page-count-loading.test.d.ts +1 -0
  110. package/dist/types/tests/render/paginator.test.d.ts +1 -0
  111. package/dist/types/tests/render/per-page-selector.test.d.ts +1 -0
  112. package/dist/types/tests/render/segmented-paginator.test.d.ts +1 -0
  113. package/dist/types/tests/render/simple.render.test.d.ts +1 -0
  114. package/package.json +18 -12
  115. package/dist/cjs/hooks/usePaginationSearch.js.map +0 -7
  116. package/dist/cjs/parts/PageNextButton.js +0 -52
  117. package/dist/cjs/parts/PageNextButton.js.map +0 -7
  118. package/dist/cjs/parts/PagePrevButton.js.map +0 -7
  119. package/dist/cjs/parts/Paginator.js +0 -162
  120. package/dist/cjs/parts/Paginator.js.map +0 -7
  121. package/dist/cjs/parts/PerPageSelector.js +0 -114
  122. package/dist/cjs/parts/PerPageSelector.js.map +0 -7
  123. package/dist/esm/hooks/usePaginationSearch.js.map +0 -7
  124. package/dist/esm/parts/PageNextButton.js +0 -26
  125. package/dist/esm/parts/PageNextButton.js.map +0 -7
  126. package/dist/esm/parts/PagePrevButton.js +0 -23
  127. package/dist/esm/parts/PagePrevButton.js.map +0 -7
  128. package/dist/esm/parts/Paginator.js +0 -136
  129. package/dist/esm/parts/Paginator.js.map +0 -7
  130. package/dist/esm/parts/PerPageSelector.js +0 -88
  131. package/dist/esm/parts/PerPageSelector.js.map +0 -7
  132. package/dist/types/hooks/usePaginationSearch.d.ts +0 -1
  133. package/dist/types/parts/PageNextButton.d.ts +0 -3
  134. package/dist/types/parts/PagePrevButton.d.ts +0 -3
  135. package/dist/types/parts/Paginator.d.ts +0 -11
  136. package/dist/types/parts/PerPageSelector.d.ts +0 -4
@@ -0,0 +1,55 @@
1
+ import * as React from "react";
2
+ import { PropTypes } from "@elliemae/ds-props-helpers";
3
+ const emptyFunc = () => null;
4
+ const propTypes = {
5
+ pageCount: PropTypes.number.description("How many pages are there"),
6
+ pageIndex: PropTypes.number.description("Index of the current page, starting from 1").defaultValue(1),
7
+ canPreviousPage: PropTypes.bool.description("Whether the previous button is disabled or not").defaultValue(true),
8
+ canNextPage: PropTypes.bool.description("Whether the next button is disabled or not").defaultValue(true),
9
+ pageSize: PropTypes.number.description("The current page size").defaultValue(10),
10
+ showPerPageSelector: PropTypes.bool.description("Whether to show the page selector").defaultValue(true),
11
+ perPageOptions: PropTypes.arrayOf(
12
+ PropTypes.oneOfType([
13
+ PropTypes.number,
14
+ PropTypes.shape({
15
+ dsId: PropTypes.string,
16
+ value: PropTypes.number,
17
+ label: PropTypes.string,
18
+ type: PropTypes.oneOf(["single"])
19
+ })
20
+ ])
21
+ ).description("The available options for page size").defaultValue([10]),
22
+ perPageStep: PropTypes.number.description("Step for the per page options").defaultValue(5),
23
+ minPerPage: PropTypes.number.description("Step for the per page options").defaultValue(0),
24
+ maxPerPage: PropTypes.number.description("Step for the per page options").defaultValue(100),
25
+ onPageSizeChange: PropTypes.func.description("Function invoked when the page size changes").defaultValue(() => null),
26
+ onPreviousPage: PropTypes.func.description("Function invoked when the previous button is pressed").defaultValue(() => null),
27
+ onPageChange: PropTypes.func.description("Function invoked when the page changes").defaultValue(() => null),
28
+ onNextPage: PropTypes.func.description("Function invoked when next button is pressed").defaultValue(() => null),
29
+ pageDetails: PropTypes.arrayOf(PropTypes.string).description("Details to provide for each page").defaultValue([]),
30
+ pageDetailsTitle: PropTypes.string.description("The title of the details (usually a column of your dataset)").defaultValue(""),
31
+ width: PropTypes.any.description("Width for the container of the pagination").defaultValue("100%")
32
+ };
33
+ const defaultProps = {
34
+ pageIndex: 1,
35
+ canPreviousPage: true,
36
+ canNextPage: true,
37
+ pageSize: 10,
38
+ showPerPageSelector: true,
39
+ perPageOptions: [10],
40
+ perPageStep: 5,
41
+ minPerPage: 0,
42
+ maxPerPage: 100,
43
+ onPageSizeChange: emptyFunc,
44
+ onPreviousPage: emptyFunc,
45
+ onNextPage: emptyFunc,
46
+ onPageChange: emptyFunc,
47
+ pageDetails: [],
48
+ pageDetailsTitle: "",
49
+ width: "100%"
50
+ };
51
+ export {
52
+ defaultProps,
53
+ propTypes
54
+ };
55
+ //# sourceMappingURL=props.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/props.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-props-helpers';\nimport type { WeakValidationMap } from 'react';\n\nconst emptyFunc = () => null;\n\nexport const propTypes = {\n pageCount: PropTypes.number.description('How many pages are there'),\n pageIndex: PropTypes.number.description('Index of the current page, starting from 1').defaultValue(1),\n canPreviousPage: PropTypes.bool.description('Whether the previous button is disabled or not').defaultValue(true),\n canNextPage: PropTypes.bool.description('Whether the next button is disabled or not').defaultValue(true),\n pageSize: PropTypes.number.description('The current page size').defaultValue(10),\n showPerPageSelector: PropTypes.bool.description('Whether to show the page selector').defaultValue(true),\n perPageOptions: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.shape({\n dsId: PropTypes.string,\n value: PropTypes.number,\n label: PropTypes.string,\n type: PropTypes.oneOf(['single']),\n }),\n ]),\n )\n .description('The available options for page size')\n .defaultValue([10]),\n perPageStep: PropTypes.number.description('Step for the per page options').defaultValue(5),\n minPerPage: PropTypes.number.description('Step for the per page options').defaultValue(0),\n maxPerPage: PropTypes.number.description('Step for the per page options').defaultValue(100),\n onPageSizeChange: PropTypes.func.description('Function invoked when the page size changes').defaultValue(() => null),\n onPreviousPage: PropTypes.func\n .description('Function invoked when the previous button is pressed')\n .defaultValue(() => null),\n onPageChange: PropTypes.func.description('Function invoked when the page changes').defaultValue(() => null),\n onNextPage: PropTypes.func.description('Function invoked when next button is pressed').defaultValue(() => null),\n pageDetails: PropTypes.arrayOf(PropTypes.string).description('Details to provide for each page').defaultValue([]),\n pageDetailsTitle: PropTypes.string\n .description('The title of the details (usually a column of your dataset)')\n .defaultValue(''),\n width: PropTypes.any.description('Width for the container of the pagination').defaultValue('100%'),\n} as WeakValidationMap<unknown>;\n\nexport const defaultProps = {\n pageIndex: 1,\n canPreviousPage: true,\n canNextPage: true,\n pageSize: 10,\n showPerPageSelector: true,\n perPageOptions: [10],\n perPageStep: 5,\n minPerPage: 0,\n maxPerPage: 100,\n onPageSizeChange: emptyFunc,\n onPreviousPage: emptyFunc,\n onNextPage: emptyFunc,\n onPageChange: emptyFunc,\n pageDetails: [],\n pageDetailsTitle: '',\n width: '100%',\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAG1B,MAAM,YAAY,MAAM;AAEjB,MAAM,YAAY;AAAA,EACvB,WAAW,UAAU,OAAO,YAAY,0BAA0B;AAAA,EAClE,WAAW,UAAU,OAAO,YAAY,4CAA4C,EAAE,aAAa,CAAC;AAAA,EACpG,iBAAiB,UAAU,KAAK,YAAY,gDAAgD,EAAE,aAAa,IAAI;AAAA,EAC/G,aAAa,UAAU,KAAK,YAAY,4CAA4C,EAAE,aAAa,IAAI;AAAA,EACvG,UAAU,UAAU,OAAO,YAAY,uBAAuB,EAAE,aAAa,EAAE;AAAA,EAC/E,qBAAqB,UAAU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AY;AAAA,EACZ,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,aAAa,CAAC;AAAA,EACd,kBAAkB;AAAA,EAClB,OAAO;AACT;",
6
+ "names": []
7
+ }
@@ -1,5 +1,28 @@
1
1
  import * as React from "react";
2
- import { globalAttributesPropTypes, PropTypes, xstyledPropTypes } from "@elliemae/ds-utilities";
2
+ import { globalAttributesPropTypes, PropTypes, xstyledPropTypes } from "@elliemae/ds-props-helpers";
3
+ const perPageSelectorDefaultProps = {
4
+ pageSize: 10,
5
+ onPageSizeChange: () => null,
6
+ perPageStep: 5,
7
+ minPerPage: 0,
8
+ maxPerPage: 100
9
+ };
10
+ const pagePrevButtonDefaultProps = {
11
+ canPreviousPage: true,
12
+ onPreviousPage: () => null
13
+ };
14
+ const pageNextButtonDefaultProps = {
15
+ canNextPage: true,
16
+ onNextPage: () => null
17
+ };
18
+ const paginatorDefaultProps = {
19
+ pageCount: 0,
20
+ isLoadingPageCount: false,
21
+ pageIndex: 1,
22
+ onPageChange: () => null,
23
+ pageDetails: [],
24
+ pageDetailsTitle: ""
25
+ };
3
26
  const defaultProps = {
4
27
  pageCount: 0,
5
28
  pageIndex: 1,
@@ -8,7 +31,6 @@ const defaultProps = {
8
31
  canNextPage: true,
9
32
  pageSize: 10,
10
33
  showPerPageSelector: true,
11
- perPageOptions: [10],
12
34
  perPageStep: 5,
13
35
  minPerPage: 0,
14
36
  maxPerPage: 100,
@@ -32,17 +54,7 @@ const DSPaginationPropTypes = {
32
54
  onPageChange: PropTypes.func.description("Function invoked when the page changes").defaultValue(() => null),
33
55
  onNextPage: PropTypes.func.description("Function invoked when next button is pressed").defaultValue(() => null),
34
56
  showPerPageSelector: PropTypes.bool.description("Whether to show the page selector").defaultValue(true),
35
- perPageOptions: PropTypes.arrayOf(
36
- PropTypes.oneOfType([
37
- PropTypes.number,
38
- PropTypes.shape({
39
- dsId: PropTypes.string,
40
- value: PropTypes.number,
41
- label: PropTypes.string,
42
- type: PropTypes.oneOf(["single"])
43
- })
44
- ])
45
- ).description("The available options for page size").defaultValue([10]),
57
+ perPageOptions: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.object])).description("The available options for page size").defaultValue([10]),
46
58
  minPerPage: PropTypes.number.description("Min for the per page options").defaultValue(0),
47
59
  maxPerPage: PropTypes.number.description("Max for the per page options").defaultValue(100),
48
60
  perPageStep: PropTypes.number.description("Step for the per page options").defaultValue(5),
@@ -53,9 +65,71 @@ const DSPaginationPropTypes = {
53
65
  isLoadingPageCount: PropTypes.bool.description("Whether the page count is loading or not").defaultValue(false)
54
66
  };
55
67
  const DSPaginationPropTypesSchema = DSPaginationPropTypes;
68
+ const DSPerPageSelectorPropTypes = {
69
+ ...globalAttributesPropTypes,
70
+ ...xstyledPropTypes,
71
+ pageSize: PropTypes.number.description("The current page size").defaultValue(10),
72
+ onPageSizeChange: PropTypes.func.description("Function invoked when the page size changes").defaultValue(() => null),
73
+ perPageOptions: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.object])).description("The available options for page size").defaultValue([10]),
74
+ minPerPage: PropTypes.number.description("Min for the per page options").defaultValue(0),
75
+ maxPerPage: PropTypes.number.description("Max for the per page options").defaultValue(100),
76
+ perPageStep: PropTypes.number.description("Step for the per page options").defaultValue(5)
77
+ };
78
+ const DSPerPageSelectorPropTypesSchema = DSPerPageSelectorPropTypes;
79
+ const DSPagePrevButtonPropTypes = {
80
+ ...globalAttributesPropTypes,
81
+ ...xstyledPropTypes,
82
+ canPreviousPage: PropTypes.bool.description("Whether the previous button is disabled or not").defaultValue(true),
83
+ onPreviousPage: PropTypes.func.description("Function invoked when the previous button is pressed").defaultValue(() => null)
84
+ };
85
+ const DSPagePrevButtonPropTypesSchema = DSPagePrevButtonPropTypes;
86
+ const DSPageNextButtonPropTypes = {
87
+ ...globalAttributesPropTypes,
88
+ ...xstyledPropTypes,
89
+ canNextPage: PropTypes.bool.description("Whether the next button is disabled or not").defaultValue(true),
90
+ onNextPage: PropTypes.func.description("Function invoked when next button is pressed").defaultValue(() => null)
91
+ };
92
+ const DSPageNextButtonPropTypesSchema = DSPageNextButtonPropTypes;
93
+ const DSPaginatorPropTypes = {
94
+ ...globalAttributesPropTypes,
95
+ ...xstyledPropTypes,
96
+ pageIndex: PropTypes.number.description("Index of the current page, starting from 1").defaultValue(1),
97
+ pageCount: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description("How many pages are there"),
98
+ onPageChange: PropTypes.func.description("Function invoked when the page changes").defaultValue(() => null),
99
+ isLoadingPageCount: PropTypes.bool.description("Whether the page count is loading or not").defaultValue(false),
100
+ pageDetails: PropTypes.arrayOf(PropTypes.string).description("Details to provide for each page").defaultValue([]),
101
+ pageDetailsTitle: PropTypes.string.description("The title of the details (usually a column of your dataset)").defaultValue("")
102
+ };
103
+ const DSPaginatorPropTypesSchema = DSPaginatorPropTypes;
104
+ const DSPaginationContainerPropTypes = {
105
+ ...globalAttributesPropTypes,
106
+ ...xstyledPropTypes
107
+ };
108
+ const DSPaginationContainerPropTypesSchema = DSPaginationContainerPropTypes;
109
+ const DSPaginationStyledPartPropTypes = {
110
+ ...globalAttributesPropTypes,
111
+ ...xstyledPropTypes
112
+ };
113
+ const DSPaginationStyledPartPropTypesSchema = DSPaginationStyledPartPropTypes;
56
114
  export {
115
+ DSPageNextButtonPropTypes,
116
+ DSPageNextButtonPropTypesSchema,
117
+ DSPagePrevButtonPropTypes,
118
+ DSPagePrevButtonPropTypesSchema,
119
+ DSPaginationContainerPropTypes,
120
+ DSPaginationContainerPropTypesSchema,
57
121
  DSPaginationPropTypes,
58
122
  DSPaginationPropTypesSchema,
59
- defaultProps
123
+ DSPaginationStyledPartPropTypes,
124
+ DSPaginationStyledPartPropTypesSchema,
125
+ DSPaginatorPropTypes,
126
+ DSPaginatorPropTypesSchema,
127
+ DSPerPageSelectorPropTypes,
128
+ DSPerPageSelectorPropTypesSchema,
129
+ defaultProps,
130
+ pageNextButtonDefaultProps,
131
+ pagePrevButtonDefaultProps,
132
+ paginatorDefaultProps,
133
+ perPageSelectorDefaultProps
60
134
  };
61
135
  //# sourceMappingURL=react-desc-prop-types.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { globalAttributesPropTypes, PropTypes, xstyledPropTypes } from '@elliemae/ds-utilities';\nimport type { WeakValidationMap } from 'react';\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-utilities';\n\nexport namespace DSPaginationT {\n export interface DefaultProps {\n pageCount: number | string;\n isLoadingPageCount: boolean;\n pageIndex: number;\n canPreviousPage: boolean;\n canNextPage: boolean;\n pageSize: number;\n showPerPageSelector: boolean;\n perPageOptions: (number | Record<string, unknown>)[];\n perPageStep: number;\n minPerPage: number;\n maxPerPage: number;\n onPageSizeChange: (pageSize: number) => void;\n onPreviousPage: () => void;\n onNextPage: () => void;\n onPageChange: (page: number) => void;\n pageDetails: string[];\n pageDetailsTitle: string;\n width: string | number;\n }\n export interface OptionalProps {}\n export interface RequiredProps {}\n\n export interface Props\n extends Partial<DefaultProps>,\n RequiredProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof DefaultProps | keyof OptionalProps | keyof RequiredProps>,\n XstyledProps {}\n\n export interface InternalProps\n extends DefaultProps,\n RequiredProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof DefaultProps | keyof OptionalProps | keyof RequiredProps>,\n XstyledProps {}\n}\n\nexport const defaultProps: DSPaginationT.DefaultProps = {\n pageCount: 0,\n pageIndex: 1,\n isLoadingPageCount: false,\n canPreviousPage: true,\n canNextPage: true,\n pageSize: 10,\n showPerPageSelector: true,\n perPageOptions: [10],\n perPageStep: 5,\n minPerPage: 0,\n maxPerPage: 100,\n onPageSizeChange: () => null,\n onPreviousPage: () => null,\n onNextPage: () => null,\n onPageChange: () => null,\n pageDetails: [],\n pageDetailsTitle: '',\n width: '100%',\n};\n\nexport const DSPaginationPropTypes: DSPropTypesSchema<DSPaginationT.Props> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n pageIndex: PropTypes.number.description('Index of the current page, starting from 1').defaultValue(1),\n pageCount: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('How many pages are there'),\n pageSize: PropTypes.number.description('The current page size').defaultValue(10),\n canPreviousPage: PropTypes.bool.description('Whether the previous button is disabled or not').defaultValue(true),\n canNextPage: PropTypes.bool.description('Whether the next button is disabled or not').defaultValue(true),\n onPreviousPage: PropTypes.func\n .description('Function invoked when the previous button is pressed')\n .defaultValue(() => null),\n onPageChange: PropTypes.func.description('Function invoked when the page changes').defaultValue(() => null),\n onNextPage: PropTypes.func.description('Function invoked when next button is pressed').defaultValue(() => null),\n showPerPageSelector: PropTypes.bool.description('Whether to show the page selector').defaultValue(true),\n perPageOptions: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.shape({\n dsId: PropTypes.string,\n value: PropTypes.number,\n label: PropTypes.string,\n type: PropTypes.oneOf(['single']),\n }),\n ]),\n )\n .description('The available options for page size')\n .defaultValue([10]),\n minPerPage: PropTypes.number.description('Min for the per page options').defaultValue(0),\n maxPerPage: PropTypes.number.description('Max for the per page options').defaultValue(100),\n perPageStep: PropTypes.number.description('Step for the per page options').defaultValue(5),\n onPageSizeChange: PropTypes.func.description('Function invoked when the page size changes').defaultValue(() => null),\n pageDetails: PropTypes.arrayOf(PropTypes.string).description('Details to provide for each page').defaultValue([]),\n pageDetailsTitle: PropTypes.string\n .description('The title of the details (usually a column of your dataset)')\n .defaultValue(''),\n width: PropTypes.any.description('Width for the container of the pagination').defaultValue('100%'),\n isLoadingPageCount: PropTypes.bool.description('Whether the page count is loading or not').defaultValue(false),\n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G,gBAAgB,UAAU;AAAA,IACxB,UAAU,UAAU;AAAA,MAClB,UAAU;AAAA,MACV,UAAU,MAAM;AAAA,QACd,MAAM,UAAU;AAAA,QAChB,OAAO,UAAU;AAAA,QACjB,OAAO,UAAU;AAAA,QACjB,MAAM,UAAU,MAAM,CAAC,QAAQ,CAAC;AAAA,MAClC,CAAC;AAAA,IACH,CAAC;AAAA,EACH,EACG,YAAY,qCAAqC,EACjD,aAAa,CAAC,EAAE,CAAC;AAAA,EACpB,YAAY,UAAU,OAAO,YAAY,8BAA8B,EAAE,aAAa,CAAC;AAAA,EACvF,YAAY,UAAU,OAAO,YAAY,8BAA8B,EAAE,aAAa,GAAG;AAAA,EACzF,aAAa,UAAU,OAAO,YAAY,+BAA+B,EAAE,aAAa,CAAC;AAAA,EACzF,kBAAkB,UAAU,KAAK,YAAY,6CAA6C,EAAE,aAAa,MAAM,IAAI;AAAA,EACnH,aAAa,UAAU,QAAQ,UAAU,MAAM,EAAE,YAAY,kCAAkC,EAAE,aAAa,CAAC,CAAC;AAAA,EAChH,kBAAkB,UAAU,OACzB,YAAY,6DAA6D,EACzE,aAAa,EAAE;AAAA,EAClB,OAAO,UAAU,IAAI,YAAY,2CAA2C,EAAE,aAAa,MAAM;AAAA,EACjG,oBAAoB,UAAU,KAAK,YAAY,0CAA0C,EAAE,aAAa,KAAK;AAC/G;AAEO,MAAM,8BAA8B;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { globalAttributesPropTypes, PropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport type { WeakValidationMap } from 'react';\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport type { DSDropdownMenuT } from '@elliemae/ds-dropdownmenu';\n\nexport namespace DSPaginationT {\n type PropsT<D, R, O, E> = Partial<D> & R & O & Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> & XstyledProps;\n type InternalPropsT<D, R, O, E> = D & R & O & Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> & XstyledProps;\n\n export interface PerPageSelectorDefaultProps {\n pageSize: number;\n onPageSizeChange: (pageSize: number) => void;\n perPageStep: number;\n minPerPage: number;\n maxPerPage: number;\n }\n export interface PerPageSelectorOptionalProps {\n perPageOptions?: (number | DSDropdownMenuT.ItemSingleOptions)[];\n }\n export interface PerPageSelectorRequiredProps {}\n\n export type PerPageSelectorProps = PropsT<\n PerPageSelectorDefaultProps,\n PerPageSelectorRequiredProps,\n PerPageSelectorOptionalProps,\n HTMLDivElement\n >;\n\n export type PerPageSelectorInternalProps = InternalPropsT<\n PerPageSelectorDefaultProps,\n PerPageSelectorRequiredProps,\n PerPageSelectorOptionalProps,\n HTMLDivElement\n >;\n\n export interface PagePrevButtonDefaultProps {\n canPreviousPage: boolean;\n onPreviousPage: () => void;\n }\n export interface PagePrevButtonOptionalProps {}\n export interface PagePrevButtonRequiredProps {}\n\n export type PagePrevButtonProps = PropsT<\n PagePrevButtonDefaultProps,\n PagePrevButtonRequiredProps,\n PagePrevButtonOptionalProps,\n HTMLButtonElement\n >;\n\n export type PagePrevButtonInternalProps = InternalPropsT<\n PagePrevButtonDefaultProps,\n PagePrevButtonRequiredProps,\n PagePrevButtonOptionalProps,\n HTMLButtonElement\n >;\n\n export interface PageNextButtonDefaultProps {\n canNextPage: boolean;\n onNextPage: () => void;\n }\n export interface PageNextButtonOptionalProps {}\n export interface PageNextButtonRequiredProps {}\n\n export type PageNextButtonProps = PropsT<\n PageNextButtonDefaultProps,\n PageNextButtonRequiredProps,\n PageNextButtonOptionalProps,\n HTMLButtonElement\n >;\n\n export type PageNextButtonInternalProps = InternalPropsT<\n PageNextButtonDefaultProps,\n PageNextButtonRequiredProps,\n PageNextButtonOptionalProps,\n HTMLButtonElement\n >;\n\n export interface PaginatorDefaultProps {\n pageCount: number | string;\n isLoadingPageCount: boolean;\n pageIndex: number;\n onPageChange: (page: number) => void;\n pageDetails: string[];\n pageDetailsTitle: string;\n }\n export interface PaginatorOptionalProps {}\n export interface PaginatorRequiredProps {}\n\n export type PaginatorProps = PropsT<\n PaginatorDefaultProps,\n PaginatorRequiredProps,\n PaginatorOptionalProps,\n HTMLDivElement\n >;\n\n export type PaginatorInternalProps = InternalPropsT<\n PaginatorDefaultProps,\n PaginatorRequiredProps,\n PaginatorOptionalProps,\n HTMLDivElement\n >;\n\n export interface ContainerDefaultProps {}\n export interface ContainerOptionalProps {}\n export interface ContainerRequiredProps {\n children: React.ReactNode;\n }\n\n export type ContainerProps = PropsT<\n ContainerDefaultProps,\n ContainerRequiredProps,\n ContainerOptionalProps,\n HTMLDivElement\n >;\n\n export type ContainerInternalProps = InternalPropsT<\n ContainerDefaultProps,\n ContainerRequiredProps,\n ContainerOptionalProps,\n HTMLDivElement\n >;\n\n // LEGACY WAY OF USING THE PAGINATION COMPONENT\n export interface DefaultProps {\n pageCount: number | string;\n isLoadingPageCount: boolean;\n pageIndex: number;\n canPreviousPage: boolean;\n canNextPage: boolean;\n pageSize: number;\n showPerPageSelector: boolean;\n perPageStep: number;\n minPerPage: number;\n maxPerPage: number;\n onPageSizeChange: (pageSize: number) => void;\n onPreviousPage: () => void;\n onNextPage: () => void;\n onPageChange: (page: number) => void;\n pageDetails: string[];\n pageDetailsTitle: string;\n width: string | number;\n }\n export interface OptionalProps {\n perPageOptions?: (number | DSDropdownMenuT.ItemSingleOptions)[];\n }\n export interface RequiredProps {}\n\n export type Props = PropsT<DefaultProps, RequiredProps, OptionalProps, HTMLDivElement>;\n\n export type InternalProps = InternalPropsT<DefaultProps, RequiredProps, OptionalProps, HTMLDivElement>;\n}\n\nexport const perPageSelectorDefaultProps: DSPaginationT.PerPageSelectorDefaultProps = {\n pageSize: 10,\n onPageSizeChange: () => null,\n perPageStep: 5,\n minPerPage: 0,\n maxPerPage: 100,\n};\n\nexport const pagePrevButtonDefaultProps: DSPaginationT.PagePrevButtonDefaultProps = {\n canPreviousPage: true,\n onPreviousPage: () => null,\n};\n\nexport const pageNextButtonDefaultProps: DSPaginationT.PageNextButtonDefaultProps = {\n canNextPage: true,\n onNextPage: () => null,\n};\n\nexport const paginatorDefaultProps: DSPaginationT.PaginatorDefaultProps = {\n pageCount: 0,\n isLoadingPageCount: false,\n pageIndex: 1,\n onPageChange: () => null,\n pageDetails: [],\n pageDetailsTitle: '',\n};\n\nexport const defaultProps: DSPaginationT.DefaultProps = {\n pageCount: 0,\n pageIndex: 1,\n isLoadingPageCount: false,\n canPreviousPage: true,\n canNextPage: true,\n pageSize: 10,\n showPerPageSelector: true,\n perPageStep: 5,\n minPerPage: 0,\n maxPerPage: 100,\n onPageSizeChange: () => null,\n onPreviousPage: () => null,\n onNextPage: () => null,\n onPageChange: () => null,\n pageDetails: [],\n pageDetailsTitle: '',\n width: '100%',\n};\n\nexport const DSPaginationPropTypes: DSPropTypesSchema<DSPaginationT.Props> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n pageIndex: PropTypes.number.description('Index of the current page, starting from 1').defaultValue(1),\n pageCount: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('How many pages are there'),\n pageSize: PropTypes.number.description('The current page size').defaultValue(10),\n canPreviousPage: PropTypes.bool.description('Whether the previous button is disabled or not').defaultValue(true),\n canNextPage: PropTypes.bool.description('Whether the next button is disabled or not').defaultValue(true),\n onPreviousPage: PropTypes.func\n .description('Function invoked when the previous button is pressed')\n .defaultValue(() => null),\n onPageChange: PropTypes.func.description('Function invoked when the page changes').defaultValue(() => null),\n onNextPage: PropTypes.func.description('Function invoked when next button is pressed').defaultValue(() => null),\n showPerPageSelector: PropTypes.bool.description('Whether to show the page selector').defaultValue(true),\n perPageOptions: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.object]))\n .description('The available options for page size')\n .defaultValue([10]),\n minPerPage: PropTypes.number.description('Min for the per page options').defaultValue(0),\n maxPerPage: PropTypes.number.description('Max for the per page options').defaultValue(100),\n perPageStep: PropTypes.number.description('Step for the per page options').defaultValue(5),\n onPageSizeChange: PropTypes.func.description('Function invoked when the page size changes').defaultValue(() => null),\n pageDetails: PropTypes.arrayOf(PropTypes.string).description('Details to provide for each page').defaultValue([]),\n pageDetailsTitle: PropTypes.string\n .description('The title of the details (usually a column of your dataset)')\n .defaultValue(''),\n width: PropTypes.any.description('Width for the container of the pagination').defaultValue('100%'),\n isLoadingPageCount: PropTypes.bool.description('Whether the page count is loading or not').defaultValue(false),\n};\n\nexport const DSPaginationPropTypesSchema = DSPaginationPropTypes as unknown as WeakValidationMap<DSPaginationT.Props>;\n\nexport const DSPerPageSelectorPropTypes: DSPropTypesSchema<DSPaginationT.PerPageSelectorProps> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n pageSize: PropTypes.number.description('The current page size').defaultValue(10),\n onPageSizeChange: PropTypes.func.description('Function invoked when the page size changes').defaultValue(() => null),\n perPageOptions: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.object]))\n .description('The available options for page size')\n .defaultValue([10]),\n minPerPage: PropTypes.number.description('Min for the per page options').defaultValue(0),\n maxPerPage: PropTypes.number.description('Max for the per page options').defaultValue(100),\n perPageStep: PropTypes.number.description('Step for the per page options').defaultValue(5),\n};\n\nexport const DSPerPageSelectorPropTypesSchema =\n DSPerPageSelectorPropTypes as unknown as WeakValidationMap<DSPaginationT.PerPageSelectorProps>;\n\nexport const DSPagePrevButtonPropTypes: DSPropTypesSchema<DSPaginationT.PagePrevButtonProps> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n canPreviousPage: PropTypes.bool.description('Whether the previous button is disabled or not').defaultValue(true),\n onPreviousPage: PropTypes.func\n .description('Function invoked when the previous button is pressed')\n .defaultValue(() => null),\n};\n\nexport const DSPagePrevButtonPropTypesSchema =\n DSPagePrevButtonPropTypes as unknown as WeakValidationMap<DSPaginationT.PagePrevButtonProps>;\n\nexport const DSPageNextButtonPropTypes: DSPropTypesSchema<DSPaginationT.PageNextButtonProps> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n canNextPage: PropTypes.bool.description('Whether the next button is disabled or not').defaultValue(true),\n onNextPage: PropTypes.func.description('Function invoked when next button is pressed').defaultValue(() => null),\n};\n\nexport const DSPageNextButtonPropTypesSchema =\n DSPageNextButtonPropTypes as unknown as WeakValidationMap<DSPaginationT.PageNextButtonProps>;\n\nexport const DSPaginatorPropTypes: DSPropTypesSchema<DSPaginationT.PaginatorProps> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n pageIndex: PropTypes.number.description('Index of the current page, starting from 1').defaultValue(1),\n pageCount: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('How many pages are there'),\n onPageChange: PropTypes.func.description('Function invoked when the page changes').defaultValue(() => null),\n isLoadingPageCount: PropTypes.bool.description('Whether the page count is loading or not').defaultValue(false),\n pageDetails: PropTypes.arrayOf(PropTypes.string).description('Details to provide for each page').defaultValue([]),\n pageDetailsTitle: PropTypes.string\n .description('The title of the details (usually a column of your dataset)')\n .defaultValue(''),\n};\n\nexport const DSPaginatorPropTypesSchema =\n DSPaginatorPropTypes as unknown as WeakValidationMap<DSPaginationT.PaginatorProps>;\n\nexport const DSPaginationContainerPropTypes: DSPropTypesSchema<DSPaginationT.ContainerProps> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n};\n\nexport const DSPaginationContainerPropTypesSchema =\n DSPaginationContainerPropTypes as unknown as WeakValidationMap<DSPaginationT.ContainerProps>;\n\nexport const DSPaginationStyledPartPropTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n};\n\nexport const DSPaginationStyledPartPropTypesSchema =\n DSPaginationStyledPartPropTypes as unknown as WeakValidationMap<unknown>;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,2BAA2B,WAAW,wBAAwB;AAwJhE,MAAM,8BAAyE;AAAA,EACpF,UAAU;AAAA,EACV,kBAAkB,MAAM;AAAA,EACxB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AAAA,EACH,GAAG;AACL;AAEO,MAAM,wCACX;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { Grid } from "@elliemae/ds-grid";
3
- import { DSButtonV2 } from "@elliemae/ds-button";
3
+ import { DSButtonV2 } from "@elliemae/ds-button-v2";
4
4
  import { xStyledCommonProps, styled, css } from "@elliemae/ds-system";
5
5
  const styledFocusCss = css`
6
6
  &:after {
@@ -16,42 +16,34 @@ const styledFocusCss = css`
16
16
  z-index: 7;
17
17
  }
18
18
  `;
19
- const PaginationContainer = styled(Grid)`
19
+ const StyledPaginationContainer = styled(Grid)`
20
20
  height: 42px;
21
21
  max-width: 100%;
22
22
  align-items: center;
23
+ justify-content: center;
23
24
  box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.5);
24
25
  position: relative;
25
26
  ${xStyledCommonProps}
26
27
  `;
27
- const PaginationWrapper = styled.div`
28
- display: flex;
28
+ const StyledPaginationWrapper = styled.div`
29
+ display: grid;
30
+ grid-auto-flow: column;
29
31
  justify-content: center;
30
32
  align-items: center;
31
33
  `;
32
- const PaginationSeparator = styled(Grid)`
34
+ const DSPaginationSeparator = styled(Grid)`
33
35
  background-color: ${(props) => props.theme.colors.neutral[300]};
34
36
  width: 1px;
35
- height: ${(props) => props.height || "30px"};
36
- `;
37
- const PaginationBoldText = styled.span`
38
- font-weight: ${(props) => props.theme.fontWeights.semibold};
39
- position: relative;
37
+ height: 30px;
40
38
  ${xStyledCommonProps}
41
39
  `;
42
- const InvisibleDetail = styled.div`
40
+ const InvisibleDiv = styled.div`
43
41
  opacity: 0;
44
42
  white-space: nowrap;
45
43
  overflow: hidden;
46
44
  text-overflow: ellipsis;
47
45
  position: absolute;
48
46
  `;
49
- const PaginationDetail = styled.span`
50
- text-align: left;
51
- white-space: nowrap;
52
- overflow: hidden;
53
- text-overflow: ellipsis;
54
- `;
55
47
  const PaginationDropdownButton = styled(DSButtonV2)`
56
48
  height: 42px;
57
49
  display: grid;
@@ -63,7 +55,7 @@ const PaginationDropdownButton = styled(DSButtonV2)`
63
55
  padding-right: 16px;
64
56
  grid-gap: 8px;
65
57
  font-size: 13px;
66
- color: ${(props) => props.theme.colors.neutral[700]};
58
+ color: neutral-700;
67
59
  cursor: pointer;
68
60
  border-radius: 0;
69
61
  font-weight: ${(props) => props.theme.fontWeights.regular};
@@ -89,13 +81,11 @@ const PreviousNextPageButton = styled(DSButtonV2)`
89
81
  }
90
82
  `;
91
83
  export {
92
- InvisibleDetail,
93
- PaginationBoldText,
94
- PaginationContainer,
95
- PaginationDetail,
84
+ DSPaginationSeparator,
85
+ InvisibleDiv,
96
86
  PaginationDropdownButton,
97
- PaginationSeparator,
98
- PaginationWrapper,
99
- PreviousNextPageButton
87
+ PreviousNextPageButton,
88
+ StyledPaginationContainer,
89
+ StyledPaginationWrapper
100
90
  };
101
91
  //# sourceMappingURL=styled.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/styled.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { Grid } from '@elliemae/ds-grid';\nimport { DSButtonV2 } from '@elliemae/ds-button';\nimport { xStyledCommonProps, styled, css } from '@elliemae/ds-system';\nimport type { XstyledProps } from '@elliemae/ds-utilities';\nimport type {} from '@xstyled/system';\n\nconst styledFocusCss = css`\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 ${({ theme }) => theme.colors.brand[700]};\n pointer-events: none;\n z-index: 7;\n }\n`;\n\nexport const PaginationContainer = styled(Grid)<React.ComponentProps<typeof Grid> & XstyledProps>`\n height: 42px;\n max-width: 100%;\n align-items: center;\n box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.5);\n position: relative;\n ${xStyledCommonProps}\n`;\n\nexport const PaginationWrapper = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nexport const PaginationSeparator = styled(Grid)`\n background-color: ${(props) => props.theme.colors.neutral[300]};\n width: 1px;\n height: ${(props) => props.height || '30px'};\n`;\n\nexport const PaginationBoldText = styled.span`\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n position: relative;\n ${xStyledCommonProps}\n`;\n\nexport const InvisibleDetail = styled.div`\n opacity: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n position: absolute;\n`;\n\nexport const PaginationDetail = styled.span`\n text-align: left;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport const PaginationDropdownButton = styled(DSButtonV2)`\n height: 42px;\n display: grid;\n grid-auto-flow: column;\n justify-content: center;\n align-items: center;\n position: relative;\n padding-left: 16px;\n padding-right: 16px;\n grid-gap: 8px;\n font-size: 13px;\n color: ${(props) => props.theme.colors.neutral[700]};\n cursor: pointer;\n border-radius: 0;\n font-weight: ${(props) => props.theme.fontWeights.regular};\n :focus {\n ${styledFocusCss}\n }\n &[aria-disabled='true'] {\n cursor: not-allowed;\n }\n white-space: nowrap;\n`;\n\nexport const PreviousNextPageButton = styled(DSButtonV2)`\n height: 42px;\n display: grid;\n place-items: center;\n position: relative;\n padding-left: 8px;\n padding-right: 8px;\n border-radius: 0;\n cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};\n :focus {\n ${styledFocusCss}\n }\n`;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB,QAAQ,WAAW;AAIhD,MAAM,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBASC,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,MAAM;AAAA;AAAA;AAAA;AAAA;AAMnD,MAAM,sBAAsB,OAAO,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAM1C;AAAA;AAGG,MAAM,oBAAoB,OAAO;AAAA;AAAA;AAAA;AAAA;AAMjC,MAAM,sBAAsB,OAAO,IAAI;AAAA,sBACxB,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA,YAEhD,CAAC,UAAU,MAAM,UAAU;AAAA;AAGhC,MAAM,qBAAqB,OAAO;AAAA,iBACxB,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA,IAEhD;AAAA;AAGG,MAAM,kBAAkB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ/B,MAAM,mBAAmB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAOhC,MAAM,2BAA2B,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAW9C,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA;AAAA,iBAGhC,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA,MAE9C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQC,MAAM,yBAAyB,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAQ3C,CAAC,UAAW,MAAM,WAAW,gBAAgB;AAAA;AAAA,MAEnD;AAAA;AAAA;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { Grid } from '@elliemae/ds-grid';\nimport { DSButtonV2 } from '@elliemae/ds-button-v2';\nimport { xStyledCommonProps, styled, css } from '@elliemae/ds-system';\nimport type { XstyledProps } from '@elliemae/ds-props-helpers';\nimport type {} from '@xstyled/system';\n\nconst styledFocusCss = css`\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 ${({ theme }) => theme.colors.brand[700]};\n pointer-events: none;\n z-index: 7;\n }\n`;\n\nexport const StyledPaginationContainer = styled(Grid)<React.ComponentProps<typeof Grid> & XstyledProps>`\n height: 42px;\n max-width: 100%;\n align-items: center;\n justify-content: center;\n box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.5);\n position: relative;\n ${xStyledCommonProps}\n`;\n\nexport const StyledPaginationWrapper = styled.div`\n display: grid;\n grid-auto-flow: column;\n justify-content: center;\n align-items: center;\n`;\n\nexport const DSPaginationSeparator = styled(Grid)`\n background-color: ${(props) => props.theme.colors.neutral[300]};\n width: 1px;\n height: 30px;\n ${xStyledCommonProps}\n`;\n\nexport const InvisibleDiv = styled.div`\n opacity: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n position: absolute;\n`;\n\nexport const PaginationDropdownButton = styled(DSButtonV2)`\n height: 42px;\n display: grid;\n grid-auto-flow: column;\n justify-content: center;\n align-items: center;\n position: relative;\n padding-left: 16px;\n padding-right: 16px;\n grid-gap: 8px;\n font-size: 13px;\n color: neutral-700;\n cursor: pointer;\n border-radius: 0;\n font-weight: ${(props) => props.theme.fontWeights.regular};\n :focus {\n ${styledFocusCss}\n }\n &[aria-disabled='true'] {\n cursor: not-allowed;\n }\n white-space: nowrap;\n`;\n\nexport const PreviousNextPageButton = styled(DSButtonV2)`\n height: 42px;\n display: grid;\n place-items: center;\n position: relative;\n padding-left: 8px;\n padding-right: 8px;\n border-radius: 0;\n cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};\n :focus {\n ${styledFocusCss}\n }\n`;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB,QAAQ,WAAW;AAIhD,MAAM,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBASC,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,MAAM,GAAG;AAAA;AAAA;AAAA;AAAA;AAMtD,MAAM,4BAA4B,OAAO,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOhD;AAAA;AAGG,MAAM,0BAA0B,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAOvC,MAAM,wBAAwB,OAAO,IAAI;AAAA,sBAC1B,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG;AAAA;AAAA;AAAA,IAG3D;AAAA;AAGG,MAAM,eAAe,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ5B,MAAM,2BAA2B,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAcxC,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA,MAE9C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQC,MAAM,yBAAyB,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAQ3C,CAAC,UAAW,MAAM,WAAW,gBAAgB;AAAA;AAAA,MAEnD;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -1 +1,7 @@
1
1
  export declare const DSPaginationName = "DSPagination";
2
+ export declare const PaginationContainerName = "DSPaginationContainer";
3
+ export declare const PerPageSelectorName = "DSPerPageSelector";
4
+ export declare const PagePrevButtonName = "DSPagePrevButton";
5
+ export declare const PageNextButtonName = "DSPageNextButton";
6
+ export declare const PaginatorName = "DSPaginator";
7
+ export declare const PaginationSeparatorName = "DSPaginationSeparator";
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { DSPaginationT } from './react-desc-prop-types';
2
+ import type { DSPaginationT } from './react-desc-prop-types.js';
3
3
  declare const DSPagination: React.ComponentType<DSPaginationT.Props>;
4
- declare const DSPaginationWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<DSPaginationT.Props>;
4
+ declare const DSPaginationWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSPaginationT.Props>;
5
5
  export { DSPagination, DSPaginationWithSchema };
@@ -2,4 +2,6 @@ export declare const PAGINATION_DATA_TESTID: {
2
2
  PREVIOUS_BUTTON: string;
3
3
  NEXT_BUTTON: string;
4
4
  CONTAINER: string;
5
+ PER_PAGE_SELECTOR: string;
6
+ PAGINATOR: string;
5
7
  };
@@ -1 +1,17 @@
1
- export * from './Pagination';
1
+ /// <reference types="react" />
2
+ declare const DSPaginationSeparatorWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
3
+ [x: string]: any;
4
+ [x: number]: any;
5
+ [x: symbol]: any;
6
+ } & {
7
+ theme?: import("@elliemae/ds-system").Theme | undefined;
8
+ } & {
9
+ as?: string | import("react").ComponentType<any> | undefined;
10
+ forwardedAs?: string | import("react").ComponentType<any> | undefined;
11
+ }>;
12
+ export { DSPagination, DSPaginationWithSchema } from './Pagination.js';
13
+ export { DSPageNextButton, DSPageNextButtonWithSchema, DSPagePrevButton, DSPagePrevButtonWithSchema, DSPaginationContainer, DSPaginationContainerWithSchema, DSPerPageSelector, DSPerPageSelectorWithSchema, DSPaginator, DSPaginatorWithSchema, } from './parts/index.js';
14
+ export { DSPaginationSeparator } from './styled.js';
15
+ export { DSPaginationSeparatorWithSchema };
16
+ export { PAGINATION_DATA_TESTID } from './PaginationDataTestID.js';
17
+ export type { DSPaginationT } from './react-desc-prop-types.js';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { DSPaginationT } from '../react-desc-prop-types.js';
3
+ export declare const DSPageNextButton: React.ComponentType<DSPaginationT.PageNextButtonProps>;
4
+ export declare const DSPageNextButtonWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSPaginationT.PageNextButtonProps>;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { DSPaginationT } from '../react-desc-prop-types.js';
3
+ export declare const DSPagePrevButton: React.ComponentType<DSPaginationT.PagePrevButtonProps>;
4
+ export declare const DSPagePrevButtonWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSPaginationT.PagePrevButtonProps>;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { DSPaginationT } from '../react-desc-prop-types.js';
3
+ export declare const DSPaginationContainer: React.ComponentType<DSPaginationT.ContainerProps>;
4
+ export declare const DSPaginationContainerWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSPaginationT.ContainerProps>;
@@ -0,0 +1,6 @@
1
+ interface PaginatorHeaderOptions {
2
+ pageDetailsTitle: string;
3
+ pageInfoWidth: number;
4
+ }
5
+ export declare const createPaginatorHeader: ({ pageDetailsTitle, pageInfoWidth }: PaginatorHeaderOptions) => () => JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { DSDropdownMenuT } from '@elliemae/ds-dropdownmenu';
2
+ export declare const getOptions: (args: {
3
+ pageCount: number | string;
4
+ pageIndex: number;
5
+ pageDetails: string[];
6
+ pageInfoWidth: number;
7
+ }) => DSDropdownMenuT.ItemSingleOptions[];
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { DSPaginationT } from '../../react-desc-prop-types.js';
3
+ export declare const DSPaginator: React.ComponentType<DSPaginationT.PaginatorProps>;
4
+ export declare const DSPaginatorWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSPaginationT.PaginatorProps>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const usePaginationSearch: (pageCount: string | number, actionRef: import("react").MutableRefObject<Record<string, (dsId: string) => void>>) => React.KeyboardEventHandler;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="lodash" />
3
+ import type { DSPaginationT } from '../../react-desc-prop-types.js';
4
+ export declare const usePaginator: (props: DSPaginationT.PaginatorInternalProps) => {
5
+ btnRef: import("react").RefObject<HTMLButtonElement>;
6
+ btnWidth: number;
7
+ pageInfoWidth: number;
8
+ options: import("@elliemae/ds-dropdownmenu").DSDropdownMenuT.ItemSingleOptions[];
9
+ isOpened: boolean;
10
+ setIsOpened: import("react").Dispatch<import("react").SetStateAction<boolean>>;
11
+ detailWidth: number;
12
+ setDetailWidth: import("react").Dispatch<import("react").SetStateAction<number>>;
13
+ globalAttributes: import("lodash").Omit<import("@elliemae/ds-props-helpers").GlobalAttributesT<Element>, "type" | "shape" | "size">;
14
+ xstyledAttributes: import("@elliemae/ds-props-helpers").XstyledProps;
15
+ actionRef: import("react").MutableRefObject<Record<string, (dsId: string) => void>>;
16
+ onKeyDown: import("react").KeyboardEventHandler<Element>;
17
+ };
@@ -0,0 +1,3 @@
1
+ import type { DSDropdownMenuT } from '@elliemae/ds-dropdownmenu';
2
+ export declare const generateOption: (value: number | DSDropdownMenuT.ItemSingleOptions) => DSDropdownMenuT.ItemSingleOptions;
3
+ export declare const getOptions: (step: number, min: number, max: number) => DSDropdownMenuT.ItemSingleOptions[];
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { DSPaginationT } from '../../react-desc-prop-types.js';
3
+ export declare const DSPerPageSelector: React.ComponentType<DSPaginationT.PerPageSelectorProps>;
4
+ export declare const DSPerPageSelectorWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSPaginationT.PerPageSelectorProps>;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="lodash" />
3
+ import type { DSPaginationT } from '../../react-desc-prop-types.js';
4
+ export declare const usePerPageSelector: (props: DSPaginationT.PerPageSelectorInternalProps) => {
5
+ actionRef: import("react").MutableRefObject<Record<string, (dsId: string) => void>>;
6
+ btnRef: import("react").RefObject<HTMLButtonElement>;
7
+ width: number;
8
+ isOpened: boolean;
9
+ setIsOpened: import("react").Dispatch<import("react").SetStateAction<boolean>>;
10
+ options: import("@elliemae/ds-dropdownmenu").DSDropdownMenuT.ItemSingleOptions[];
11
+ globalAttributes: import("lodash").Omit<import("@elliemae/ds-props-helpers").GlobalAttributesT<Element>, "type" | "shape" | "size">;
12
+ xstyledAttributes: import("@elliemae/ds-props-helpers").XstyledProps;
13
+ };
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import type { DSPaginationT } from '../react-desc-prop-types';
2
+ import type { DSPaginationT } from '../react-desc-prop-types.js';
3
3
  export declare const PaginationContent: React.ComponentType<DSPaginationT.InternalProps>;
@@ -0,0 +1,5 @@
1
+ export { DSPageNextButton, DSPageNextButtonWithSchema } from './DSPageNextButton.js';
2
+ export { DSPagePrevButton, DSPagePrevButtonWithSchema } from './DSPagePrevButton.js';
3
+ export { DSPaginationContainer, DSPaginationContainerWithSchema } from './DSPaginationContainer.js';
4
+ export { DSPerPageSelector, DSPerPageSelectorWithSchema } from './DSPerPageSelector/index.js';
5
+ export { DSPaginator, DSPaginatorWithSchema } from './DSPaginator/index.js';
@@ -0,0 +1,20 @@
1
+ import type { WeakValidationMap } from 'react';
2
+ export declare const propTypes: WeakValidationMap<unknown>;
3
+ export declare const defaultProps: {
4
+ pageIndex: number;
5
+ canPreviousPage: boolean;
6
+ canNextPage: boolean;
7
+ pageSize: number;
8
+ showPerPageSelector: boolean;
9
+ perPageOptions: number[];
10
+ perPageStep: number;
11
+ minPerPage: number;
12
+ maxPerPage: number;
13
+ onPageSizeChange: () => null;
14
+ onPreviousPage: () => null;
15
+ onNextPage: () => null;
16
+ onPageChange: () => null;
17
+ pageDetails: never[];
18
+ pageDetailsTitle: string;
19
+ width: string;
20
+ };