@elliemae/ds-pagination 3.57.0-next.9 → 3.57.0-rc.1

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 (390) hide show
  1. package/dist/cjs/{Pagination.js → DSPagination.js} +8 -8
  2. package/dist/cjs/DSPagination.js.map +7 -0
  3. package/dist/cjs/config/usePagination.js +51 -0
  4. package/dist/cjs/config/usePagination.js.map +7 -0
  5. package/dist/cjs/{PaginationDataTestID.js → config/useValidateProps.js} +9 -13
  6. package/dist/cjs/config/useValidateProps.js.map +7 -0
  7. package/dist/cjs/{DSPaginationDefinitions.js → constants/index.js} +22 -19
  8. package/dist/cjs/constants/index.js.map +7 -0
  9. package/dist/cjs/index.js +29 -18
  10. package/dist/cjs/index.js.map +3 -3
  11. package/dist/cjs/parts/{DSPageNextButton.js → DSPageNextButton/DSPageNextButton.js} +46 -18
  12. package/dist/cjs/parts/DSPageNextButton/DSPageNextButton.js.map +7 -0
  13. package/dist/cjs/parts/DSPageNextButton/config/usePageNextButton.js +55 -0
  14. package/dist/cjs/parts/DSPageNextButton/config/usePageNextButton.js.map +7 -0
  15. package/dist/cjs/parts/DSPageNextButton/config/useValidateProps.js +40 -0
  16. package/dist/cjs/parts/DSPageNextButton/config/useValidateProps.js.map +7 -0
  17. package/dist/cjs/parts/DSPageNextButton/constants/index.js +48 -0
  18. package/dist/cjs/parts/DSPageNextButton/constants/index.js.map +7 -0
  19. package/dist/cjs/parts/DSPageNextButton/index.js +41 -0
  20. package/dist/cjs/parts/DSPageNextButton/index.js.map +7 -0
  21. package/dist/cjs/parts/DSPageNextButton/react-desc-prop-types.js +51 -0
  22. package/dist/cjs/parts/DSPageNextButton/react-desc-prop-types.js.map +7 -0
  23. package/dist/cjs/parts/DSPageNextButton/typescript-testing/slot-props.js +32 -0
  24. package/dist/cjs/parts/DSPageNextButton/typescript-testing/slot-props.js.map +7 -0
  25. package/dist/cjs/{typescript-testing/typescript-page-next-button-valid.js → parts/DSPageNextButton/typescript-testing/typescript-testing.js} +1 -1
  26. package/dist/cjs/parts/DSPageNextButton/typescript-testing/typescript-testing.js.map +7 -0
  27. package/dist/cjs/parts/{DSPagePrevButton.js → DSPagePrevButton/DSPagePrevButton.js} +46 -18
  28. package/dist/cjs/parts/DSPagePrevButton/DSPagePrevButton.js.map +7 -0
  29. package/dist/cjs/parts/DSPagePrevButton/config/usePagePrevButton.js +55 -0
  30. package/dist/cjs/parts/DSPagePrevButton/config/usePagePrevButton.js.map +7 -0
  31. package/dist/cjs/parts/DSPagePrevButton/config/useValidateProps.js +40 -0
  32. package/dist/cjs/parts/DSPagePrevButton/config/useValidateProps.js.map +7 -0
  33. package/dist/cjs/parts/DSPagePrevButton/constants/index.js +48 -0
  34. package/dist/cjs/parts/DSPagePrevButton/constants/index.js.map +7 -0
  35. package/dist/cjs/parts/DSPagePrevButton/index.js +41 -0
  36. package/dist/cjs/parts/DSPagePrevButton/index.js.map +7 -0
  37. package/dist/cjs/parts/DSPagePrevButton/react-desc-prop-types.js +51 -0
  38. package/dist/cjs/parts/DSPagePrevButton/react-desc-prop-types.js.map +7 -0
  39. package/dist/cjs/parts/DSPagePrevButton/typescript-testing/slot-props.js +32 -0
  40. package/dist/cjs/parts/DSPagePrevButton/typescript-testing/slot-props.js.map +7 -0
  41. package/dist/cjs/{typescript-testing/typescript-page-prev-button-valid.js → parts/DSPagePrevButton/typescript-testing/typescript-testing.js} +1 -1
  42. package/dist/cjs/parts/DSPagePrevButton/typescript-testing/typescript-testing.js.map +7 -0
  43. package/dist/cjs/parts/{DSPaginationContainer.js → DSPaginationContainer/DSPaginationContainer.js} +26 -12
  44. package/dist/cjs/parts/DSPaginationContainer/DSPaginationContainer.js.map +7 -0
  45. package/dist/cjs/parts/DSPaginationContainer/config/usePaginationContainer.js +60 -0
  46. package/dist/cjs/parts/DSPaginationContainer/config/usePaginationContainer.js.map +7 -0
  47. package/dist/cjs/parts/DSPaginationContainer/config/useValidateProps.js +40 -0
  48. package/dist/cjs/parts/DSPaginationContainer/config/useValidateProps.js.map +7 -0
  49. package/dist/cjs/parts/DSPaginationContainer/constants/index.js +50 -0
  50. package/dist/cjs/parts/DSPaginationContainer/constants/index.js.map +7 -0
  51. package/dist/cjs/parts/DSPaginationContainer/index.js +41 -0
  52. package/dist/cjs/parts/DSPaginationContainer/index.js.map +7 -0
  53. package/dist/cjs/parts/DSPaginationContainer/react-desc-prop-types.js +48 -0
  54. package/dist/cjs/parts/DSPaginationContainer/react-desc-prop-types.js.map +7 -0
  55. package/dist/cjs/parts/DSPaginationContainer/typescript-testing/slot-props.js +34 -0
  56. package/dist/cjs/parts/DSPaginationContainer/typescript-testing/slot-props.js.map +7 -0
  57. package/dist/cjs/parts/DSPaginationSeparator/DSPaginationSeparator.js +68 -0
  58. package/dist/cjs/parts/DSPaginationSeparator/DSPaginationSeparator.js.map +7 -0
  59. package/dist/cjs/parts/DSPaginationSeparator/config/usePaginationSeparator.js +60 -0
  60. package/dist/cjs/parts/DSPaginationSeparator/config/usePaginationSeparator.js.map +7 -0
  61. package/dist/cjs/parts/DSPaginationSeparator/config/useValidateProps.js +40 -0
  62. package/dist/cjs/parts/DSPaginationSeparator/config/useValidateProps.js.map +7 -0
  63. package/dist/cjs/parts/DSPaginationSeparator/constants/index.js +45 -0
  64. package/dist/cjs/parts/DSPaginationSeparator/constants/index.js.map +7 -0
  65. package/dist/cjs/parts/DSPaginationSeparator/index.js +41 -0
  66. package/dist/cjs/parts/DSPaginationSeparator/index.js.map +7 -0
  67. package/dist/cjs/parts/DSPaginationSeparator/react-desc-prop-types.js +46 -0
  68. package/dist/cjs/parts/DSPaginationSeparator/react-desc-prop-types.js.map +7 -0
  69. package/dist/cjs/parts/DSPaginator/DSPaginator.js +212 -0
  70. package/dist/cjs/parts/DSPaginator/DSPaginator.js.map +7 -0
  71. package/dist/cjs/parts/DSPaginator/{createPaginatorHeader.js → config/createPaginatorHeader.js} +11 -6
  72. package/dist/cjs/parts/DSPaginator/config/createPaginatorHeader.js.map +7 -0
  73. package/dist/cjs/parts/DSPaginator/{getOptions.js → config/getOptions.js} +4 -4
  74. package/dist/cjs/parts/DSPaginator/config/getOptions.js.map +7 -0
  75. package/dist/cjs/parts/DSPaginator/{usePaginationSearch.js.map → config/usePaginationSearch.js.map} +1 -1
  76. package/dist/cjs/parts/DSPaginator/{usePaginator.js → config/usePaginator.js} +62 -38
  77. package/dist/cjs/parts/DSPaginator/config/usePaginator.js.map +7 -0
  78. package/dist/cjs/parts/DSPaginator/config/useValidateProps.js +40 -0
  79. package/dist/cjs/parts/DSPaginator/config/useValidateProps.js.map +7 -0
  80. package/dist/cjs/parts/DSPaginator/constants/index.js +45 -0
  81. package/dist/cjs/parts/DSPaginator/constants/index.js.map +7 -0
  82. package/dist/cjs/parts/DSPaginator/index.js +7 -112
  83. package/dist/cjs/parts/DSPaginator/index.js.map +3 -3
  84. package/dist/cjs/parts/DSPaginator/react-desc-prop-types.js +59 -0
  85. package/dist/cjs/parts/DSPaginator/react-desc-prop-types.js.map +7 -0
  86. package/dist/cjs/parts/DSPaginator/styled.js +135 -0
  87. package/dist/cjs/parts/DSPaginator/styled.js.map +7 -0
  88. package/dist/cjs/parts/DSPaginator/typescript-testing/slot-props.js +32 -0
  89. package/dist/cjs/parts/DSPaginator/typescript-testing/slot-props.js.map +7 -0
  90. package/dist/cjs/{typescript-testing/typescript-paginator-valid.js → parts/DSPaginator/typescript-testing/typescript-testing.js} +1 -1
  91. package/dist/cjs/parts/DSPaginator/typescript-testing/typescript-testing.js.map +7 -0
  92. package/dist/cjs/parts/DSPerPageSelector/DSPerPageSelector.js +125 -0
  93. package/dist/cjs/parts/DSPerPageSelector/DSPerPageSelector.js.map +7 -0
  94. package/dist/cjs/parts/DSPerPageSelector/{getOptions.js.map → config/getOptions.js.map} +1 -1
  95. package/dist/cjs/parts/DSPerPageSelector/{usePerPageSelector.js → config/usePerPageSelector.js} +29 -19
  96. package/dist/cjs/parts/DSPerPageSelector/config/usePerPageSelector.js.map +7 -0
  97. package/dist/cjs/parts/DSPerPageSelector/config/useValidateProps.js +40 -0
  98. package/dist/cjs/parts/DSPerPageSelector/config/useValidateProps.js.map +7 -0
  99. package/dist/cjs/parts/DSPerPageSelector/constants/index.js +50 -0
  100. package/dist/cjs/parts/DSPerPageSelector/constants/index.js.map +7 -0
  101. package/dist/cjs/parts/DSPerPageSelector/index.js +7 -70
  102. package/dist/cjs/parts/DSPerPageSelector/index.js.map +3 -3
  103. package/dist/cjs/parts/DSPerPageSelector/react-desc-prop-types.js +58 -0
  104. package/dist/cjs/parts/DSPerPageSelector/react-desc-prop-types.js.map +7 -0
  105. package/dist/cjs/{styled.js → parts/DSPerPageSelector/styled.js} +36 -41
  106. package/dist/cjs/parts/DSPerPageSelector/styled.js.map +7 -0
  107. package/dist/cjs/parts/DSPerPageSelector/typescript-testing/slots-props.js +32 -0
  108. package/dist/cjs/parts/DSPerPageSelector/typescript-testing/slots-props.js.map +7 -0
  109. package/dist/cjs/{typescript-testing/typescript-per-page-selector-valid.js → parts/DSPerPageSelector/typescript-testing/typescript-testing.js} +1 -1
  110. package/dist/cjs/parts/DSPerPageSelector/typescript-testing/typescript-testing.js.map +7 -0
  111. package/dist/cjs/parts/PaginationContent.js +7 -9
  112. package/dist/cjs/parts/PaginationContent.js.map +2 -2
  113. package/dist/cjs/parts/index.js +25 -4
  114. package/dist/cjs/parts/index.js.map +2 -2
  115. package/dist/cjs/parts/{DSPaginator → shared}/useOnElementOnResize.js.map +1 -1
  116. package/dist/cjs/react-desc-prop-types.js +1 -86
  117. package/dist/cjs/react-desc-prop-types.js.map +2 -2
  118. package/dist/esm/{Pagination.js → DSPagination.js} +6 -6
  119. package/dist/esm/DSPagination.js.map +7 -0
  120. package/dist/esm/config/usePagination.js +21 -0
  121. package/dist/esm/config/usePagination.js.map +7 -0
  122. package/dist/esm/config/useValidateProps.js +10 -0
  123. package/dist/esm/config/useValidateProps.js.map +7 -0
  124. package/dist/esm/constants/index.js +27 -0
  125. package/dist/esm/constants/index.js.map +7 -0
  126. package/dist/esm/index.js +45 -13
  127. package/dist/esm/index.js.map +3 -3
  128. package/dist/esm/parts/DSPageNextButton/DSPageNextButton.js +74 -0
  129. package/dist/esm/parts/DSPageNextButton/DSPageNextButton.js.map +7 -0
  130. package/dist/esm/parts/DSPageNextButton/config/usePageNextButton.js +30 -0
  131. package/dist/esm/parts/DSPageNextButton/config/usePageNextButton.js.map +7 -0
  132. package/dist/esm/parts/DSPageNextButton/config/useValidateProps.js +10 -0
  133. package/dist/esm/parts/DSPageNextButton/config/useValidateProps.js.map +7 -0
  134. package/dist/esm/parts/DSPageNextButton/constants/index.js +18 -0
  135. package/dist/esm/parts/DSPageNextButton/constants/index.js.map +7 -0
  136. package/dist/esm/parts/DSPageNextButton/index.js +11 -0
  137. package/dist/esm/parts/DSPageNextButton/index.js.map +7 -0
  138. package/dist/esm/parts/DSPageNextButton/react-desc-prop-types.js +26 -0
  139. package/dist/esm/parts/DSPageNextButton/react-desc-prop-types.js.map +7 -0
  140. package/dist/esm/parts/DSPageNextButton/typescript-testing/slot-props.js +9 -0
  141. package/dist/esm/parts/DSPageNextButton/typescript-testing/slot-props.js.map +7 -0
  142. package/dist/esm/{typescript-testing/typescript-page-next-button-valid.js → parts/DSPageNextButton/typescript-testing/typescript-testing.js} +1 -1
  143. package/dist/esm/parts/DSPageNextButton/typescript-testing/typescript-testing.js.map +7 -0
  144. package/dist/esm/parts/DSPagePrevButton/DSPagePrevButton.js +74 -0
  145. package/dist/esm/parts/DSPagePrevButton/DSPagePrevButton.js.map +7 -0
  146. package/dist/esm/parts/DSPagePrevButton/config/usePagePrevButton.js +30 -0
  147. package/dist/esm/parts/DSPagePrevButton/config/usePagePrevButton.js.map +7 -0
  148. package/dist/esm/parts/DSPagePrevButton/config/useValidateProps.js +10 -0
  149. package/dist/esm/parts/DSPagePrevButton/config/useValidateProps.js.map +7 -0
  150. package/dist/esm/parts/DSPagePrevButton/constants/index.js +18 -0
  151. package/dist/esm/parts/DSPagePrevButton/constants/index.js.map +7 -0
  152. package/dist/esm/parts/DSPagePrevButton/index.js +11 -0
  153. package/dist/esm/parts/DSPagePrevButton/index.js.map +7 -0
  154. package/dist/esm/parts/DSPagePrevButton/react-desc-prop-types.js +26 -0
  155. package/dist/esm/parts/DSPagePrevButton/react-desc-prop-types.js.map +7 -0
  156. package/dist/esm/parts/DSPagePrevButton/typescript-testing/slot-props.js +9 -0
  157. package/dist/esm/parts/DSPagePrevButton/typescript-testing/slot-props.js.map +7 -0
  158. package/dist/esm/{typescript-testing/typescript-page-prev-button-valid.js → parts/DSPagePrevButton/typescript-testing/typescript-testing.js} +1 -1
  159. package/dist/esm/parts/DSPagePrevButton/typescript-testing/typescript-testing.js.map +7 -0
  160. package/dist/esm/parts/DSPaginationContainer/DSPaginationContainer.js +50 -0
  161. package/dist/esm/parts/DSPaginationContainer/DSPaginationContainer.js.map +7 -0
  162. package/dist/esm/parts/DSPaginationContainer/config/usePaginationContainer.js +38 -0
  163. package/dist/esm/parts/DSPaginationContainer/config/usePaginationContainer.js.map +7 -0
  164. package/dist/esm/parts/DSPaginationContainer/config/useValidateProps.js +10 -0
  165. package/dist/esm/parts/DSPaginationContainer/config/useValidateProps.js.map +7 -0
  166. package/dist/esm/parts/DSPaginationContainer/constants/index.js +20 -0
  167. package/dist/esm/parts/DSPaginationContainer/constants/index.js.map +7 -0
  168. package/dist/esm/parts/DSPaginationContainer/index.js +15 -0
  169. package/dist/esm/parts/DSPaginationContainer/index.js.map +7 -0
  170. package/dist/esm/parts/DSPaginationContainer/react-desc-prop-types.js +18 -0
  171. package/dist/esm/parts/DSPaginationContainer/react-desc-prop-types.js.map +7 -0
  172. package/dist/esm/parts/DSPaginationContainer/typescript-testing/slot-props.js +11 -0
  173. package/dist/esm/parts/DSPaginationContainer/typescript-testing/slot-props.js.map +7 -0
  174. package/dist/esm/parts/DSPaginationSeparator/DSPaginationSeparator.js +43 -0
  175. package/dist/esm/parts/DSPaginationSeparator/DSPaginationSeparator.js.map +7 -0
  176. package/dist/esm/parts/DSPaginationSeparator/config/usePaginationSeparator.js +38 -0
  177. package/dist/esm/parts/DSPaginationSeparator/config/usePaginationSeparator.js.map +7 -0
  178. package/dist/esm/parts/DSPaginationSeparator/config/useValidateProps.js +10 -0
  179. package/dist/esm/parts/DSPaginationSeparator/config/useValidateProps.js.map +7 -0
  180. package/dist/esm/parts/DSPaginationSeparator/constants/index.js +15 -0
  181. package/dist/esm/parts/DSPaginationSeparator/constants/index.js.map +7 -0
  182. package/dist/esm/parts/DSPaginationSeparator/index.js +15 -0
  183. package/dist/esm/parts/DSPaginationSeparator/index.js.map +7 -0
  184. package/dist/esm/parts/DSPaginationSeparator/react-desc-prop-types.js +16 -0
  185. package/dist/esm/parts/DSPaginationSeparator/react-desc-prop-types.js.map +7 -0
  186. package/dist/esm/parts/DSPaginator/DSPaginator.js +182 -0
  187. package/dist/esm/parts/DSPaginator/DSPaginator.js.map +7 -0
  188. package/dist/esm/parts/DSPaginator/config/createPaginatorHeader.js +24 -0
  189. package/dist/esm/parts/DSPaginator/config/createPaginatorHeader.js.map +7 -0
  190. package/dist/esm/parts/DSPaginator/{getOptions.js → config/getOptions.js} +4 -4
  191. package/dist/esm/parts/DSPaginator/config/getOptions.js.map +7 -0
  192. package/dist/esm/parts/DSPaginator/{usePaginationSearch.js.map → config/usePaginationSearch.js.map} +1 -1
  193. package/dist/esm/parts/DSPaginator/config/usePaginator.js +88 -0
  194. package/dist/esm/parts/DSPaginator/config/usePaginator.js.map +7 -0
  195. package/dist/esm/parts/DSPaginator/config/useValidateProps.js +10 -0
  196. package/dist/esm/parts/DSPaginator/config/useValidateProps.js.map +7 -0
  197. package/dist/esm/parts/DSPaginator/constants/index.js +15 -0
  198. package/dist/esm/parts/DSPaginator/constants/index.js.map +7 -0
  199. package/dist/esm/parts/DSPaginator/index.js +6 -111
  200. package/dist/esm/parts/DSPaginator/index.js.map +3 -3
  201. package/dist/esm/parts/DSPaginator/react-desc-prop-types.js +34 -0
  202. package/dist/esm/parts/DSPaginator/react-desc-prop-types.js.map +7 -0
  203. package/dist/esm/parts/DSPaginator/styled.js +105 -0
  204. package/dist/esm/parts/DSPaginator/styled.js.map +7 -0
  205. package/dist/esm/parts/DSPaginator/typescript-testing/slot-props.js +9 -0
  206. package/dist/esm/parts/DSPaginator/typescript-testing/slot-props.js.map +7 -0
  207. package/dist/esm/{typescript-testing/typescript-paginator-valid.js → parts/DSPaginator/typescript-testing/typescript-testing.js} +1 -1
  208. package/dist/esm/parts/DSPaginator/typescript-testing/typescript-testing.js.map +7 -0
  209. package/dist/esm/parts/DSPerPageSelector/DSPerPageSelector.js +95 -0
  210. package/dist/esm/parts/DSPerPageSelector/DSPerPageSelector.js.map +7 -0
  211. package/dist/esm/parts/DSPerPageSelector/{getOptions.js.map → config/getOptions.js.map} +1 -1
  212. package/dist/esm/parts/DSPerPageSelector/config/usePerPageSelector.js +55 -0
  213. package/dist/esm/parts/DSPerPageSelector/config/usePerPageSelector.js.map +7 -0
  214. package/dist/esm/parts/DSPerPageSelector/config/useValidateProps.js +10 -0
  215. package/dist/esm/parts/DSPerPageSelector/config/useValidateProps.js.map +7 -0
  216. package/dist/esm/parts/DSPerPageSelector/constants/index.js +20 -0
  217. package/dist/esm/parts/DSPerPageSelector/constants/index.js.map +7 -0
  218. package/dist/esm/parts/DSPerPageSelector/index.js +6 -69
  219. package/dist/esm/parts/DSPerPageSelector/index.js.map +3 -3
  220. package/dist/esm/parts/DSPerPageSelector/react-desc-prop-types.js +33 -0
  221. package/dist/esm/parts/DSPerPageSelector/react-desc-prop-types.js.map +7 -0
  222. package/dist/esm/parts/DSPerPageSelector/styled.js +87 -0
  223. package/dist/esm/parts/DSPerPageSelector/styled.js.map +7 -0
  224. package/dist/esm/parts/DSPerPageSelector/typescript-testing/slots-props.js +9 -0
  225. package/dist/esm/parts/DSPerPageSelector/typescript-testing/slots-props.js.map +7 -0
  226. package/dist/esm/{typescript-testing/typescript-per-page-selector-valid.js → parts/DSPerPageSelector/typescript-testing/typescript-testing.js} +1 -1
  227. package/dist/esm/parts/DSPerPageSelector/typescript-testing/typescript-testing.js.map +7 -0
  228. package/dist/esm/parts/PaginationContent.js +7 -9
  229. package/dist/esm/parts/PaginationContent.js.map +2 -2
  230. package/dist/esm/parts/index.js +63 -6
  231. package/dist/esm/parts/index.js.map +2 -2
  232. package/dist/esm/parts/{DSPaginator → shared}/useOnElementOnResize.js.map +1 -1
  233. package/dist/esm/react-desc-prop-types.js +1 -86
  234. package/dist/esm/react-desc-prop-types.js.map +2 -2
  235. package/dist/types/config/usePagination.d.ts +5 -0
  236. package/dist/types/config/useValidateProps.d.ts +3 -0
  237. package/dist/types/constants/index.d.ts +29 -0
  238. package/dist/types/index.d.ts +3 -7
  239. package/dist/types/parts/DSPageNextButton/DSPageNextButton.d.ts +5 -0
  240. package/dist/types/parts/DSPageNextButton/config/usePageNextButton.d.ts +377 -0
  241. package/dist/types/parts/DSPageNextButton/config/useValidateProps.d.ts +3 -0
  242. package/dist/types/parts/DSPageNextButton/constants/index.d.ts +9 -0
  243. package/dist/types/parts/DSPageNextButton/index.d.ts +3 -0
  244. package/dist/types/parts/DSPageNextButton/react-desc-prop-types.d.ts +23 -0
  245. package/dist/types/parts/DSPageNextButton/tests/DSPageNextButton.get-owner-props.test.d.ts +1 -0
  246. package/dist/types/parts/DSPageNextButton/tests/DSPageNextButton.keyboard.test.d.ts +1 -0
  247. package/dist/types/parts/DSPageNextButton/tests/utils/NextButtonTestRender.d.ts +2 -0
  248. package/dist/types/parts/DSPageNextButton/typescript-testing/slot-props.d.ts +1 -0
  249. package/dist/types/parts/DSPageNextButton/typescript-testing/typescript-testing.d.ts +1 -0
  250. package/dist/types/parts/DSPagePrevButton/DSPagePrevButton.d.ts +5 -0
  251. package/dist/types/parts/DSPagePrevButton/config/usePagePrevButton.d.ts +377 -0
  252. package/dist/types/parts/DSPagePrevButton/config/useValidateProps.d.ts +3 -0
  253. package/dist/types/parts/DSPagePrevButton/constants/index.d.ts +9 -0
  254. package/dist/types/parts/DSPagePrevButton/index.d.ts +3 -0
  255. package/dist/types/parts/DSPagePrevButton/react-desc-prop-types.d.ts +23 -0
  256. package/dist/types/parts/DSPagePrevButton/tests/DSPagePrevButton.a11y.test.d.ts +1 -0
  257. package/dist/types/parts/DSPagePrevButton/tests/DSPagePrevButton.callbacks.test.d.ts +1 -0
  258. package/dist/types/parts/DSPagePrevButton/tests/DSPagePrevButton.data-testid.test.d.ts +1 -0
  259. package/dist/types/parts/DSPagePrevButton/tests/DSPagePrevButton.export.test.d.ts +1 -0
  260. package/dist/types/parts/DSPagePrevButton/tests/DSPagePrevButton.get-owner-props.test.d.ts +1 -0
  261. package/dist/types/parts/DSPagePrevButton/tests/DSPagePrevButton.keyboard.test.d.ts +1 -0
  262. package/dist/types/parts/DSPagePrevButton/tests/utils/PrevButtonTestRender.d.ts +1 -0
  263. package/dist/types/parts/DSPagePrevButton/typescript-testing/slot-props.d.ts +1 -0
  264. package/dist/types/parts/DSPagePrevButton/typescript-testing/typescript-testing.d.ts +1 -0
  265. package/dist/types/parts/DSPaginationContainer/DSPaginationContainer.d.ts +5 -0
  266. package/dist/types/parts/DSPaginationContainer/config/usePaginationContainer.d.ts +377 -0
  267. package/dist/types/parts/DSPaginationContainer/config/useValidateProps.d.ts +3 -0
  268. package/dist/types/parts/DSPaginationContainer/constants/index.d.ts +11 -0
  269. package/dist/types/parts/DSPaginationContainer/index.d.ts +3 -0
  270. package/dist/types/parts/DSPaginationContainer/react-desc-prop-types.d.ts +22 -0
  271. package/dist/types/parts/DSPaginationContainer/tests/DSPaginationContainer.data-testid.test.d.ts +1 -0
  272. package/dist/types/parts/DSPaginationContainer/tests/DSPaginationContainer.exports.test.d.ts +1 -0
  273. package/dist/types/parts/DSPaginationContainer/tests/DSPaginationContainer.get-owner-props.test.d.ts +1 -0
  274. package/dist/types/parts/DSPaginationContainer/tests/utils/PaginationContainerRender.d.ts +1 -0
  275. package/dist/types/parts/DSPaginationContainer/typescript-testing/slot-props.d.ts +1 -0
  276. package/dist/types/parts/DSPaginationSeparator/DSPaginationSeparator.d.ts +7 -0
  277. package/dist/types/parts/DSPaginationSeparator/config/usePaginationSeparator.d.ts +377 -0
  278. package/dist/types/parts/DSPaginationSeparator/config/useValidateProps.d.ts +3 -0
  279. package/dist/types/parts/DSPaginationSeparator/constants/index.d.ts +9 -0
  280. package/dist/types/parts/DSPaginationSeparator/index.d.ts +3 -0
  281. package/dist/types/parts/DSPaginationSeparator/react-desc-prop-types.d.ts +18 -0
  282. package/dist/types/parts/DSPaginationSeparator/tests/DSPaginationSeparator.data-testid.test.d.ts +1 -0
  283. package/dist/types/parts/DSPaginationSeparator/tests/DSPaginationSeparator.exports.test.d.ts +1 -0
  284. package/dist/types/parts/DSPaginationSeparator/tests/DSPaginationSeparator.get-owner-props.test.d.ts +1 -0
  285. package/dist/types/parts/DSPaginationSeparator/tests/utils/DSPaginationSeparatorTestRender.d.ts +1 -0
  286. package/dist/types/parts/DSPaginator/DSPaginator.d.ts +5 -0
  287. package/dist/types/parts/DSPaginator/config/createPaginatorHeader.d.ts +8 -0
  288. package/dist/types/parts/DSPaginator/{getOptions.d.ts → config/getOptions.d.ts} +1 -0
  289. package/dist/types/parts/DSPaginator/config/usePaginator.d.ts +390 -0
  290. package/dist/types/parts/DSPaginator/config/useValidateProps.d.ts +3 -0
  291. package/dist/types/parts/DSPaginator/constants/index.d.ts +9 -0
  292. package/dist/types/parts/DSPaginator/index.d.ts +3 -4
  293. package/dist/types/parts/DSPaginator/react-desc-prop-types.d.ts +27 -0
  294. package/dist/types/parts/DSPaginator/styled.d.ts +5 -0
  295. package/dist/types/parts/DSPaginator/tests/DSPaginator.a11y.test.d.ts +1 -0
  296. package/dist/types/parts/DSPaginator/tests/DSPaginator.data-testid.test.d.ts +1 -0
  297. package/dist/types/parts/DSPaginator/tests/DSPaginator.exports.test.d.ts +1 -0
  298. package/dist/types/parts/DSPaginator/tests/DSPaginator.get-owner-props.test.d.ts +1 -0
  299. package/dist/types/parts/DSPaginator/tests/DSPaginator.keyboard.test.d.ts +1 -0
  300. package/dist/types/parts/DSPaginator/tests/utils/DSPaginatorTestRender.d.ts +1 -0
  301. package/dist/types/parts/DSPaginator/typescript-testing/slot-props.d.ts +1 -0
  302. package/dist/types/parts/DSPaginator/typescript-testing/typescript-testing.d.ts +1 -0
  303. package/dist/types/parts/DSPerPageSelector/DSPerPageSelector.d.ts +5 -0
  304. package/dist/types/parts/DSPerPageSelector/config/usePerPageSelector.d.ts +384 -0
  305. package/dist/types/parts/DSPerPageSelector/config/useValidateProps.d.ts +3 -0
  306. package/dist/types/parts/DSPerPageSelector/constants/index.d.ts +13 -0
  307. package/dist/types/parts/DSPerPageSelector/index.d.ts +3 -4
  308. package/dist/types/parts/DSPerPageSelector/react-desc-prop-types.d.ts +28 -0
  309. package/dist/types/parts/DSPerPageSelector/styled.d.ts +3 -0
  310. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.a11y.test.d.ts +1 -0
  311. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.data-testid.test.d.ts +1 -0
  312. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.exports.test.d.ts +1 -0
  313. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.get-owner-props.test.d.ts +1 -0
  314. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.keyboard.test.d.ts +1 -0
  315. package/dist/types/parts/DSPerPageSelector/tests/utils/PerPageSelectorTestRender.d.ts +1 -0
  316. package/dist/types/parts/DSPerPageSelector/typescript-testing/slots-props.d.ts +1 -0
  317. package/dist/types/parts/DSPerPageSelector/typescript-testing/typescript-testing.d.ts +1 -0
  318. package/dist/types/parts/index.d.ts +6 -5
  319. package/dist/types/react-desc-prop-types.d.ts +9 -540
  320. package/dist/types/tests/DSPagination.data-testid.test.d.ts +1 -0
  321. package/dist/types/tests/DSPagination.exports.test.d.ts +1 -0
  322. package/dist/types/tests/DSPagination.get-owner-props.test.d.ts +1 -0
  323. package/package.json +35 -31
  324. package/dist/cjs/DSPaginationDefinitions.js.map +0 -7
  325. package/dist/cjs/Pagination.js.map +0 -7
  326. package/dist/cjs/PaginationDataTestID.js.map +0 -7
  327. package/dist/cjs/parts/DSPageNextButton.js.map +0 -7
  328. package/dist/cjs/parts/DSPagePrevButton.js.map +0 -7
  329. package/dist/cjs/parts/DSPaginationContainer.js.map +0 -7
  330. package/dist/cjs/parts/DSPaginator/createPaginatorHeader.js.map +0 -7
  331. package/dist/cjs/parts/DSPaginator/getOptions.js.map +0 -7
  332. package/dist/cjs/parts/DSPaginator/usePaginator.js.map +0 -7
  333. package/dist/cjs/parts/DSPerPageSelector/usePerPageSelector.js.map +0 -7
  334. package/dist/cjs/props.js +0 -85
  335. package/dist/cjs/props.js.map +0 -7
  336. package/dist/cjs/styled.js.map +0 -7
  337. package/dist/cjs/typescript-testing/typescript-page-next-button-valid.js.map +0 -7
  338. package/dist/cjs/typescript-testing/typescript-page-prev-button-valid.js.map +0 -7
  339. package/dist/cjs/typescript-testing/typescript-paginator-valid.js.map +0 -7
  340. package/dist/cjs/typescript-testing/typescript-per-page-selector-valid.js.map +0 -7
  341. package/dist/esm/DSPaginationDefinitions.js +0 -24
  342. package/dist/esm/DSPaginationDefinitions.js.map +0 -7
  343. package/dist/esm/Pagination.js.map +0 -7
  344. package/dist/esm/PaginationDataTestID.js +0 -14
  345. package/dist/esm/PaginationDataTestID.js.map +0 -7
  346. package/dist/esm/parts/DSPageNextButton.js +0 -47
  347. package/dist/esm/parts/DSPageNextButton.js.map +0 -7
  348. package/dist/esm/parts/DSPagePrevButton.js +0 -47
  349. package/dist/esm/parts/DSPagePrevButton.js.map +0 -7
  350. package/dist/esm/parts/DSPaginationContainer.js +0 -31
  351. package/dist/esm/parts/DSPaginationContainer.js.map +0 -7
  352. package/dist/esm/parts/DSPaginator/createPaginatorHeader.js +0 -19
  353. package/dist/esm/parts/DSPaginator/createPaginatorHeader.js.map +0 -7
  354. package/dist/esm/parts/DSPaginator/getOptions.js.map +0 -7
  355. package/dist/esm/parts/DSPaginator/usePaginator.js +0 -59
  356. package/dist/esm/parts/DSPaginator/usePaginator.js.map +0 -7
  357. package/dist/esm/parts/DSPerPageSelector/usePerPageSelector.js +0 -40
  358. package/dist/esm/parts/DSPerPageSelector/usePerPageSelector.js.map +0 -7
  359. package/dist/esm/props.js +0 -55
  360. package/dist/esm/props.js.map +0 -7
  361. package/dist/esm/styled.js +0 -92
  362. package/dist/esm/styled.js.map +0 -7
  363. package/dist/esm/typescript-testing/typescript-page-next-button-valid.js.map +0 -7
  364. package/dist/esm/typescript-testing/typescript-page-prev-button-valid.js.map +0 -7
  365. package/dist/esm/typescript-testing/typescript-paginator-valid.js.map +0 -7
  366. package/dist/esm/typescript-testing/typescript-per-page-selector-valid.js.map +0 -7
  367. package/dist/types/DSPaginationDefinitions.d.ts +0 -12
  368. package/dist/types/PaginationDataTestID.d.ts +0 -9
  369. package/dist/types/parts/DSPageNextButton.d.ts +0 -4
  370. package/dist/types/parts/DSPagePrevButton.d.ts +0 -4
  371. package/dist/types/parts/DSPaginationContainer.d.ts +0 -4
  372. package/dist/types/parts/DSPaginator/createPaginatorHeader.d.ts +0 -6
  373. package/dist/types/parts/DSPaginator/usePaginator.d.ts +0 -381
  374. package/dist/types/parts/DSPerPageSelector/usePerPageSelector.d.ts +0 -377
  375. package/dist/types/props.d.ts +0 -20
  376. package/dist/types/styled.d.ts +0 -7
  377. /package/dist/cjs/parts/DSPaginator/{usePaginationSearch.js → config/usePaginationSearch.js} +0 -0
  378. /package/dist/cjs/parts/DSPerPageSelector/{getOptions.js → config/getOptions.js} +0 -0
  379. /package/dist/cjs/parts/{DSPaginator → shared}/useOnElementOnResize.js +0 -0
  380. /package/dist/esm/parts/DSPaginator/{usePaginationSearch.js → config/usePaginationSearch.js} +0 -0
  381. /package/dist/esm/parts/DSPerPageSelector/{getOptions.js → config/getOptions.js} +0 -0
  382. /package/dist/esm/parts/{DSPaginator → shared}/useOnElementOnResize.js +0 -0
  383. /package/dist/types/{Pagination.d.ts → DSPagination.d.ts} +0 -0
  384. /package/dist/types/{typescript-testing/typescript-page-next-button-valid.d.ts → parts/DSPageNextButton/tests/DSPageNextButton.a11y.test.d.ts} +0 -0
  385. /package/dist/types/{typescript-testing/typescript-page-prev-button-valid.d.ts → parts/DSPageNextButton/tests/DSPageNextButton.callbacks.test.d.ts} +0 -0
  386. /package/dist/types/{typescript-testing/typescript-paginator-valid.d.ts → parts/DSPageNextButton/tests/DSPageNextButton.data-testid.test.d.ts} +0 -0
  387. /package/dist/types/{typescript-testing/typescript-per-page-selector-valid.d.ts → parts/DSPageNextButton/tests/DSPageNextButton.export.test.d.ts} +0 -0
  388. /package/dist/types/parts/DSPaginator/{usePaginationSearch.d.ts → config/usePaginationSearch.d.ts} +0 -0
  389. /package/dist/types/parts/DSPerPageSelector/{getOptions.d.ts → config/getOptions.d.ts} +0 -0
  390. /package/dist/types/parts/{DSPaginator → shared}/useOnElementOnResize.d.ts +0 -0
@@ -26,24 +26,24 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var Pagination_exports = {};
30
- __export(Pagination_exports, {
29
+ var DSPagination_exports = {};
30
+ __export(DSPagination_exports, {
31
31
  DSPagination: () => DSPagination,
32
32
  DSPaginationWithSchema: () => DSPaginationWithSchema
33
33
  });
34
- module.exports = __toCommonJS(Pagination_exports);
34
+ module.exports = __toCommonJS(DSPagination_exports);
35
35
  var React = __toESM(require("react"));
36
36
  var import_jsx_runtime = require("react/jsx-runtime");
37
37
  var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
38
+ var import_usePagination = require("./config/usePagination.js");
39
+ var import_constants = require("./constants/index.js");
38
40
  var import_PaginationContent = require("./parts/PaginationContent.js");
39
- var import_DSPaginationDefinitions = require("./DSPaginationDefinitions.js");
40
41
  var import_react_desc_prop_types = require("./react-desc-prop-types.js");
41
42
  const DSPagination = (props) => {
42
- const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.defaultProps);
43
- (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(propsWithDefault, import_react_desc_prop_types.DSPaginationPropTypesSchema, import_DSPaginationDefinitions.DSPaginationName);
43
+ const { propsWithDefault } = (0, import_usePagination.usePagination)(props);
44
44
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_PaginationContent.PaginationContent, { ...propsWithDefault });
45
45
  };
46
- DSPagination.displayName = import_DSPaginationDefinitions.DSPaginationName;
46
+ DSPagination.displayName = import_constants.DSPaginationName;
47
47
  const DSPaginationWithSchema = (0, import_ds_props_helpers.describe)(DSPagination).description("DSPagination");
48
48
  DSPaginationWithSchema.propTypes = import_react_desc_prop_types.DSPaginationPropTypesSchema;
49
- //# sourceMappingURL=Pagination.js.map
49
+ //# sourceMappingURL=DSPagination.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/DSPagination.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { usePagination } from './config/usePagination.js';\nimport { DSPaginationName } from './constants/index.js';\nimport { PaginationContent } from './parts/PaginationContent.js';\nimport type { DSPaginationT } from './react-desc-prop-types.js';\nimport { DSPaginationPropTypesSchema } from './react-desc-prop-types.js';\n\nconst DSPagination: React.ComponentType<DSPaginationT.Props> = (props) => {\n const { propsWithDefault } = usePagination(props);\n return <PaginationContent {...propsWithDefault} />;\n};\n\nDSPagination.displayName = DSPaginationName;\nconst DSPaginationWithSchema = describe(DSPagination).description('DSPagination');\nDSPaginationWithSchema.propTypes = DSPaginationPropTypesSchema;\n\nexport { DSPagination, DSPaginationWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADUd;AATT,8BAAyB;AACzB,2BAA8B;AAC9B,uBAAiC;AACjC,+BAAkC;AAElC,mCAA4C;AAE5C,MAAM,eAAyD,CAAC,UAAU;AACxE,QAAM,EAAE,iBAAiB,QAAI,oCAAc,KAAK;AAChD,SAAO,4CAAC,8CAAmB,GAAG,kBAAkB;AAClD;AAEA,aAAa,cAAc;AAC3B,MAAM,6BAAyB,kCAAS,YAAY,EAAE,YAAY,cAAc;AAChF,uBAAuB,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var usePagination_exports = {};
30
+ __export(usePagination_exports, {
31
+ usePagination: () => usePagination
32
+ });
33
+ module.exports = __toCommonJS(usePagination_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_react = __toESM(require("react"));
36
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
37
+ var import_react_desc_prop_types = require("../react-desc-prop-types.js");
38
+ var import_useValidateProps = require("./useValidateProps.js");
39
+ const usePagination = (propsFromUser) => {
40
+ const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(propsFromUser, import_react_desc_prop_types.defaultProps);
41
+ (0, import_useValidateProps.useValidateProps)(propsWithDefault, import_react_desc_prop_types.DSPaginationPropTypes);
42
+ const xstyledProps = (0, import_ds_props_helpers.useGetXstyledProps)(propsWithDefault);
43
+ return import_react.default.useMemo(
44
+ () => ({
45
+ propsWithDefault,
46
+ xstyledProps
47
+ }),
48
+ [propsWithDefault, xstyledProps]
49
+ );
50
+ };
51
+ //# sourceMappingURL=usePagination.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/config/usePagination.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\n\nimport { type DSPaginationT, DSPaginationPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport const usePagination = (propsFromUser: DSPaginationT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSPaginationT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSPaginationPropTypes);\n // =============================================================================\n // XSTYLED PROPS\n // =============================================================================\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n // custom code goes here, this is an example\n // const instanceUid = React.useMemo(() => `ds-pagination-${uid(5)}`, []);\n // =============================================================================\n // HELPERS HOOKS CONFIGS\n // =============================================================================\n // const eventHandlers = useEventHandlers({ propsWithDefault, instanceUid }); // <-- complex logic should be made atomics this way\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n xstyledProps,\n }),\n [propsWithDefault, xstyledProps],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,8BAAiE;AAEjE,mCAAwE;AACxE,8BAAiC;AAE1B,MAAM,gBAAgB,CAAC,kBAAuC;AAInE,QAAM,uBAAmB,sDAA0D,eAAe,yCAAY;AAC9G,gDAAiB,kBAAkB,kDAAqB;AAIxD,QAAM,mBAAe,4CAAmB,gBAAgB;AAWxD,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,kBAAkB,YAAY;AAAA,EACjC;AACF;",
6
+ "names": ["React"]
7
+ }
@@ -26,19 +26,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var PaginationDataTestID_exports = {};
30
- __export(PaginationDataTestID_exports, {
31
- PAGINATION_DATA_TESTID: () => PAGINATION_DATA_TESTID
29
+ var useValidateProps_exports = {};
30
+ __export(useValidateProps_exports, {
31
+ useValidateProps: () => useValidateProps
32
32
  });
33
- module.exports = __toCommonJS(PaginationDataTestID_exports);
33
+ module.exports = __toCommonJS(useValidateProps_exports);
34
34
  var React = __toESM(require("react"));
35
- const PAGINATION_DATA_TESTID = {
36
- PREVIOUS_BUTTON: "data-table-pagination-prev-button",
37
- NEXT_BUTTON: "data-table-pagination-next-button",
38
- CONTAINER: "data-table-pagination-container",
39
- PER_PAGE_SELECTOR: "ds-pagination-per-page-selector",
40
- PAGINATOR: "ds-pagination-paginator",
41
- SEPARATOR: "ds-pagination-separator",
42
- WRAPPER: "ds-pagination-wrapper"
35
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
+ var import_constants = require("../constants/index.js");
37
+ const useValidateProps = (props, propTypes) => {
38
+ (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(props, propTypes, import_constants.DSPaginationName);
43
39
  };
44
- //# sourceMappingURL=PaginationDataTestID.js.map
40
+ //# sourceMappingURL=useValidateProps.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/config/useValidateProps.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport type { ValidationMap } from '@elliemae/ds-props-helpers';\nimport { type DSPaginationT } from '../react-desc-prop-types.js';\nimport { DSPaginationName } from '../constants/index.js';\n\nexport const useValidateProps = (props: DSPaginationT.InternalProps, propTypes: ValidationMap<unknown>): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSPaginationName);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA+C;AAG/C,uBAAiC;AAE1B,MAAM,mBAAmB,CAAC,OAAoC,cAA4C;AAE/G,8DAA+B,OAAO,WAAW,iCAAgB;AACnE;",
6
+ "names": []
7
+ }
@@ -26,29 +26,32 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var DSPaginationDefinitions_exports = {};
30
- __export(DSPaginationDefinitions_exports, {
29
+ var constants_exports = {};
30
+ __export(constants_exports, {
31
31
  DSPaginationName: () => DSPaginationName,
32
- PageNextButtonName: () => PageNextButtonName,
33
- PagePrevButtonName: () => PagePrevButtonName,
34
- PaginationContainerName: () => PaginationContainerName,
35
- PaginationSeparatorName: () => PaginationSeparatorName,
36
- PaginationSlots: () => PaginationSlots,
37
- PaginatorName: () => PaginatorName,
38
- PerPageSelectorName: () => PerPageSelectorName
32
+ PAGINATION_DATA_TESTID: () => PAGINATION_DATA_TESTID,
33
+ PAGINATION_SLOTS: () => PAGINATION_SLOTS,
34
+ PaginationSlots: () => PaginationSlots
39
35
  });
40
- module.exports = __toCommonJS(DSPaginationDefinitions_exports);
36
+ module.exports = __toCommonJS(constants_exports);
41
37
  var React = __toESM(require("react"));
38
+ var import_ds_system = require("@elliemae/ds-system");
42
39
  const DSPaginationName = "DSPagination";
43
- const PaginationContainerName = "DSPaginationContainer";
44
- const PerPageSelectorName = "DSPerPageSelector";
45
- const PagePrevButtonName = "DSPagePrevButton";
46
- const PageNextButtonName = "DSPageNextButton";
47
- const PaginatorName = "DSPaginator";
48
- const PaginationSeparatorName = "DSPaginationSeparator";
49
- const PaginationSlots = {
40
+ const PAGINATION_SLOTS = {
50
41
  ROOT: "root",
51
42
  WRAPPER: "wrapper",
52
- SEPARATOR: "separator"
43
+ SEPARATOR: "separator",
44
+ PAGINATOR: "paginator",
45
+ PER_PAGE_SELECTOR: "per-page-selector",
46
+ PREVIOUS_BUTTON: "previous-button",
47
+ NEXT_BUTTON: "next-button"
53
48
  };
54
- //# sourceMappingURL=DSPaginationDefinitions.js.map
49
+ const PaginationSlots = PAGINATION_SLOTS;
50
+ const PAGINATION_DATA_TESTID = {
51
+ ...(0, import_ds_system.slotObjectToDataTestIds)(DSPaginationName, PaginationSlots),
52
+ PREVIOUS_BUTTON: "data-table-pagination-prev-button",
53
+ NEXT_BUTTON: "data-table-pagination-next-button",
54
+ ROOT: "data-table-pagination-container",
55
+ CONTAINER: "data-table-pagination-container"
56
+ };
57
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/constants/index.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSPaginationName = 'DSPagination';\n\n// NEW Convention for Slots\nexport const PAGINATION_SLOTS = {\n ROOT: 'root',\n WRAPPER: 'wrapper',\n SEPARATOR: 'separator',\n PAGINATOR: 'paginator',\n PER_PAGE_SELECTOR: 'per-page-selector',\n PREVIOUS_BUTTON: 'previous-button',\n NEXT_BUTTON: 'next-button',\n};\n// Legacy export for backwards compatibility\nexport const PaginationSlots = PAGINATION_SLOTS;\n\nexport const PAGINATION_DATA_TESTID = {\n ...slotObjectToDataTestIds(DSPaginationName, PaginationSlots),\n PREVIOUS_BUTTON: 'data-table-pagination-prev-button',\n NEXT_BUTTON: 'data-table-pagination-next-button',\n ROOT: 'data-table-pagination-container',\n CONTAINER: 'data-table-pagination-container',\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AAEjC,MAAM,mBAAmB;AAGzB,MAAM,mBAAmB;AAAA,EAC9B,MAAM;AAAA,EACN,SAAS;AAAA,EACT,WAAW;AAAA,EACX,WAAW;AAAA,EACX,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,aAAa;AACf;AAEO,MAAM,kBAAkB;AAExB,MAAM,yBAAyB;AAAA,EACpC,OAAG,0CAAwB,kBAAkB,eAAe;AAAA,EAC5D,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,MAAM;AAAA,EACN,WAAW;AACb;",
6
+ "names": []
7
+ }
package/dist/cjs/index.js CHANGED
@@ -29,35 +29,46 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  var index_exports = {};
30
30
  __export(index_exports, {
31
31
  DSPageNextButton: () => import_parts.DSPageNextButton,
32
+ DSPageNextButtonName: () => import_parts.DSPageNextButtonName,
32
33
  DSPageNextButtonWithSchema: () => import_parts.DSPageNextButtonWithSchema,
33
34
  DSPagePrevButton: () => import_parts.DSPagePrevButton,
35
+ DSPagePrevButtonName: () => import_parts.DSPagePrevButtonName,
34
36
  DSPagePrevButtonWithSchema: () => import_parts.DSPagePrevButtonWithSchema,
35
- DSPagination: () => import_Pagination.DSPagination,
37
+ DSPagination: () => import_DSPagination.DSPagination,
36
38
  DSPaginationContainer: () => import_parts.DSPaginationContainer,
39
+ DSPaginationContainerName: () => import_parts.DSPaginationContainerName,
37
40
  DSPaginationContainerWithSchema: () => import_parts.DSPaginationContainerWithSchema,
38
- DSPaginationName: () => import_DSPaginationDefinitions2.DSPaginationName,
39
- DSPaginationSeparator: () => import_styled2.DSPaginationSeparator,
40
- DSPaginationSeparatorWithSchema: () => DSPaginationSeparatorWithSchema,
41
- DSPaginationWithSchema: () => import_Pagination.DSPaginationWithSchema,
41
+ DSPaginationName: () => import_constants.DSPaginationName,
42
+ DSPaginationSeparator: () => import_parts.DSPaginationSeparator,
43
+ DSPaginationSeparatorName: () => import_parts.DSPaginationSeparatorName,
44
+ DSPaginationSeparatorWithSchema: () => import_parts.DSPaginationSeparatorWithSchema,
45
+ DSPaginationWithSchema: () => import_DSPagination.DSPaginationWithSchema,
42
46
  DSPaginator: () => import_parts.DSPaginator,
47
+ DSPaginatorName: () => import_parts.DSPaginatorName,
43
48
  DSPaginatorWithSchema: () => import_parts.DSPaginatorWithSchema,
44
49
  DSPerPageSelector: () => import_parts.DSPerPageSelector,
50
+ DSPerPageSelectorName: () => import_parts.DSPerPageSelectorName,
45
51
  DSPerPageSelectorWithSchema: () => import_parts.DSPerPageSelectorWithSchema,
46
- PAGINATION_DATA_TESTID: () => import_PaginationDataTestID.PAGINATION_DATA_TESTID,
47
- PaginationSlots: () => import_DSPaginationDefinitions2.PaginationSlots
52
+ PAGE_NEXT_BUTTON_DATA_TESTID: () => import_parts.PAGE_NEXT_BUTTON_DATA_TESTID,
53
+ PAGE_NEXT_BUTTON_SLOTS: () => import_parts.PAGE_NEXT_BUTTON_SLOTS,
54
+ PAGE_PREV_BUTTON_DATA_TESTID: () => import_parts.PAGE_PREV_BUTTON_DATA_TESTID,
55
+ PAGE_PREV_BUTTON_SLOTS: () => import_parts.PAGE_PREV_BUTTON_SLOTS,
56
+ PAGINATION_CONTAINER_DATA_TESTID: () => import_parts.PAGINATION_CONTAINER_DATA_TESTID,
57
+ PAGINATION_CONTAINER_SLOTS: () => import_parts.PAGINATION_CONTAINER_SLOTS,
58
+ PAGINATION_DATA_TESTID: () => import_constants.PAGINATION_DATA_TESTID,
59
+ PAGINATION_SEPARATOR_DATA_TESTID: () => import_parts.PAGINATION_SEPARATOR_DATA_TESTID,
60
+ PAGINATION_SEPARATOR_SLOTS: () => import_parts.PAGINATION_SEPARATOR_SLOTS,
61
+ PAGINATION_SLOTS: () => import_constants.PAGINATION_SLOTS,
62
+ PAGINATOR_DATA_TESTID: () => import_parts.PAGINATOR_DATA_TESTID,
63
+ PAGINATOR_SLOTS: () => import_parts.PAGINATOR_SLOTS,
64
+ PER_PAGE_SELECTOR_DATA_TESTID: () => import_parts.PER_PAGE_SELECTOR_DATA_TESTID,
65
+ PER_PAGE_SELECTOR_SLOTS: () => import_parts.PER_PAGE_SELECTOR_SLOTS,
66
+ PaginationSeparatorName: () => import_parts.DSPaginationSeparatorName,
67
+ PaginationSlots: () => import_constants.PaginationSlots
48
68
  });
49
69
  module.exports = __toCommonJS(index_exports);
50
70
  var React = __toESM(require("react"));
51
- var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
52
- var import_styled = require("./styled.js");
53
- var import_react_desc_prop_types = require("./react-desc-prop-types.js");
54
- var import_DSPaginationDefinitions = require("./DSPaginationDefinitions.js");
55
- var import_Pagination = require("./Pagination.js");
71
+ var import_DSPagination = require("./DSPagination.js");
72
+ var import_constants = require("./constants/index.js");
56
73
  var import_parts = require("./parts/index.js");
57
- var import_styled2 = require("./styled.js");
58
- var import_DSPaginationDefinitions2 = require("./DSPaginationDefinitions.js");
59
- var import_PaginationDataTestID = require("./PaginationDataTestID.js");
60
- import_styled.DSPaginationSeparator.propTypes = import_react_desc_prop_types.DSPaginationStyledPartPropTypesSchema;
61
- import_styled.DSPaginationSeparator.displayName = import_DSPaginationDefinitions.PaginationSeparatorName;
62
- const DSPaginationSeparatorWithSchema = (0, import_ds_props_helpers.describe)(import_styled.DSPaginationSeparator).description("Pagination Separator");
63
74
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { describe } from '@elliemae/ds-props-helpers';\nimport type {} from '@xstyled/util';\nimport { DSPaginationSeparator } from './styled.js';\nimport { DSPaginationStyledPartPropTypesSchema } from './react-desc-prop-types.js';\nimport { PaginationSeparatorName } from './DSPaginationDefinitions.js';\n\nDSPaginationSeparator.propTypes = DSPaginationStyledPartPropTypesSchema;\nDSPaginationSeparator.displayName = PaginationSeparatorName;\nconst DSPaginationSeparatorWithSchema = describe(DSPaginationSeparator as React.FC).description('Pagination Separator');\n\nexport { DSPagination, DSPaginationWithSchema } from './Pagination.js';\nexport {\n DSPageNextButton,\n DSPageNextButtonWithSchema,\n DSPagePrevButton,\n DSPagePrevButtonWithSchema,\n DSPaginationContainer,\n DSPaginationContainerWithSchema,\n DSPerPageSelector,\n DSPerPageSelectorWithSchema,\n DSPaginator,\n DSPaginatorWithSchema,\n} from './parts/index.js';\n\nexport { DSPaginationSeparator } from './styled.js';\n\nexport { DSPaginationName, PaginationSlots } from './DSPaginationDefinitions.js';\n\nexport { DSPaginationSeparatorWithSchema };\n\nexport { PAGINATION_DATA_TESTID } from './PaginationDataTestID.js';\n\nexport type { DSPaginationT } from './react-desc-prop-types.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAAyB;AAEzB,oBAAsC;AACtC,mCAAsD;AACtD,qCAAwC;AAMxC,wBAAqD;AACrD,mBAWO;AAEP,IAAAA,iBAAsC;AAEtC,IAAAC,kCAAkD;AAIlD,kCAAuC;AAxBvC,oCAAsB,YAAY;AAClC,oCAAsB,cAAc;AACpC,MAAM,sCAAkC,kCAAS,mCAAiC,EAAE,YAAY,sBAAsB;",
6
- "names": ["import_styled", "import_DSPaginationDefinitions"]
4
+ "sourcesContent": ["import type {} from '@xstyled/system';\nexport { DSPagination, DSPaginationWithSchema } from './DSPagination.js';\nexport { DSPaginationName, PaginationSlots, PAGINATION_DATA_TESTID, PAGINATION_SLOTS } from './constants/index.js';\nexport type { DSPaginationT } from './react-desc-prop-types.js';\n\nexport {\n DSPageNextButton,\n DSPageNextButtonWithSchema,\n DSPageNextButtonName,\n PAGE_NEXT_BUTTON_DATA_TESTID,\n PAGE_NEXT_BUTTON_SLOTS,\n type DSPageNextButtonT,\n DSPagePrevButton,\n DSPagePrevButtonWithSchema,\n DSPagePrevButtonName,\n PAGE_PREV_BUTTON_DATA_TESTID,\n PAGE_PREV_BUTTON_SLOTS,\n type DSPagePrevButtonT,\n DSPaginationContainer,\n DSPaginationContainerWithSchema,\n DSPaginationContainerName,\n PAGINATION_CONTAINER_DATA_TESTID,\n PAGINATION_CONTAINER_SLOTS,\n type DSPaginationContainerT,\n DSPerPageSelector,\n DSPerPageSelectorWithSchema,\n DSPerPageSelectorName,\n PER_PAGE_SELECTOR_DATA_TESTID,\n PER_PAGE_SELECTOR_SLOTS,\n type DSPerPageSelectorT,\n DSPaginator,\n DSPaginatorWithSchema,\n DSPaginatorName,\n PAGINATOR_DATA_TESTID,\n PAGINATOR_SLOTS,\n type DSPaginatorT,\n DSPaginationSeparator,\n DSPaginationSeparatorWithSchema,\n DSPaginationSeparatorName,\n DSPaginationSeparatorName as PaginationSeparatorName,\n PAGINATION_SEPARATOR_DATA_TESTID,\n PAGINATION_SEPARATOR_SLOTS,\n type DSPaginationSeparatorT,\n} from './parts/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,0BAAqD;AACrD,uBAA4F;AAG5F,mBAsCO;",
6
+ "names": []
7
7
  }
@@ -34,30 +34,58 @@ __export(DSPageNextButton_exports, {
34
34
  module.exports = __toCommonJS(DSPageNextButton_exports);
35
35
  var React = __toESM(require("react"));
36
36
  var import_jsx_runtime = require("react/jsx-runtime");
37
- var import_ds_icons = require("@elliemae/ds-icons");
38
37
  var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
39
- var import_PaginationDataTestID = require("../PaginationDataTestID.js");
40
- var import_styled = require("../styled.js");
41
- var import_react_desc_prop_types = require("../react-desc-prop-types.js");
42
- var import_DSPaginationDefinitions = require("../DSPaginationDefinitions.js");
38
+ var import_ds_system = require("@elliemae/ds-system");
39
+ var import_ds_button_v2 = require("@elliemae/ds-button-v2");
40
+ var import_ds_icons = require("@elliemae/ds-icons");
41
+ var import_usePageNextButton = require("./config/usePageNextButton.js");
42
+ var import_constants = require("./constants/index.js");
43
+ var import_react_desc_prop_types = require("./react-desc-prop-types.js");
44
+ const NextPageButton = (0, import_ds_system.styled)(import_ds_button_v2.DSButtonV3, {
45
+ name: import_constants.DSPaginationName,
46
+ slot: import_constants.PAGE_NEXT_BUTTON_SLOTS.PAGE_NEXT_BUTTON,
47
+ preserveLegacyDataTestId: true
48
+ })`
49
+ min-height: 42px;
50
+ display: grid;
51
+ place-items: center;
52
+ position: relative;
53
+ padding-left: 8px;
54
+ padding-right: 8px;
55
+ border-radius: 0;
56
+ :focus {
57
+ &:after {
58
+ display: block;
59
+ content: ' ';
60
+ position: absolute;
61
+ top: 0;
62
+ left: 0;
63
+ right: 0;
64
+ bottom: 0;
65
+ border: 2px solid ${({ theme }) => theme.colors.brand[700]};
66
+ pointer-events: none;
67
+ z-index: 7;
68
+ }
69
+ }
70
+ cursor: ${(props) => props.disabled ? "not-allowed" : "pointer"};
71
+ `;
43
72
  const DSPageNextButton = (props) => {
44
- const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(
45
- props,
46
- import_react_desc_prop_types.pageNextButtonDefaultProps
47
- );
48
- (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(propsWithDefault, import_react_desc_prop_types.DSPageNextButtonPropTypesSchema, import_DSPaginationDefinitions.PageNextButtonName);
49
- const { canNextPage, onNextPage } = propsWithDefault;
50
- const globalAttributes = (0, import_ds_props_helpers.useGetGlobalAttributes)(propsWithDefault);
51
- const xstyledAttributes = (0, import_ds_props_helpers.useGetXstyledProps)(propsWithDefault);
73
+ const {
74
+ propsWithDefault: { canNextPage, onNextPage },
75
+ xstyledProps,
76
+ globalAttributes,
77
+ ownerPropsConfig
78
+ } = (0, import_usePageNextButton.usePageNextButton)(props);
52
79
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
53
- import_styled.PreviousNextPageButton,
80
+ NextPageButton,
54
81
  {
55
82
  disabled: !canNextPage,
56
83
  buttonType: "raw",
57
- "data-testid": import_PaginationDataTestID.PAGINATION_DATA_TESTID.NEXT_BUTTON,
84
+ "data-testid": import_constants.PAGE_NEXT_BUTTON_DATA_TESTID.PAGE_NEXT_BUTTON,
58
85
  "aria-label": "Go to next page",
59
86
  ...globalAttributes,
60
- ...xstyledAttributes,
87
+ ...xstyledProps,
88
+ ...ownerPropsConfig,
61
89
  onClick: () => {
62
90
  if (canNextPage) onNextPage();
63
91
  },
@@ -65,7 +93,7 @@ const DSPageNextButton = (props) => {
65
93
  }
66
94
  );
67
95
  };
68
- DSPageNextButton.displayName = import_DSPaginationDefinitions.PageNextButtonName;
69
- const DSPageNextButtonWithSchema = (0, import_ds_props_helpers.describe)(DSPageNextButton).description("Per Page Selector");
96
+ DSPageNextButton.displayName = import_constants.DSPageNextButtonName;
97
+ const DSPageNextButtonWithSchema = (0, import_ds_props_helpers.describe)(DSPageNextButton);
70
98
  DSPageNextButtonWithSchema.propTypes = import_react_desc_prop_types.DSPageNextButtonPropTypesSchema;
71
99
  //# sourceMappingURL=DSPageNextButton.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/parts/DSPageNextButton/DSPageNextButton.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { describe } from '@elliemae/ds-props-helpers';\nimport { styled } from '@elliemae/ds-system';\nimport React from 'react';\n\nimport { DSButtonV3 } from '@elliemae/ds-button-v2';\nimport { ChevronRight } from '@elliemae/ds-icons';\nimport { usePageNextButton } from './config/usePageNextButton.js';\nimport {\n DSPageNextButtonName,\n DSPaginationName,\n PAGE_NEXT_BUTTON_DATA_TESTID,\n PAGE_NEXT_BUTTON_SLOTS,\n} from './constants/index.js';\nimport { type DSPageNextButtonT, DSPageNextButtonPropTypesSchema } from './react-desc-prop-types.js';\n\nconst NextPageButton = styled(DSButtonV3, {\n name: DSPaginationName,\n slot: PAGE_NEXT_BUTTON_SLOTS.PAGE_NEXT_BUTTON,\n preserveLegacyDataTestId: true,\n})`\n min-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 :focus {\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 cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};\n`;\n\nconst DSPageNextButton: React.ComponentType<DSPageNextButtonT.Props> = (props) => {\n const {\n propsWithDefault: { canNextPage, onNextPage },\n xstyledProps,\n globalAttributes,\n ownerPropsConfig,\n } = usePageNextButton(props);\n\n return (\n <NextPageButton\n disabled={!canNextPage}\n buttonType=\"raw\"\n data-testid={PAGE_NEXT_BUTTON_DATA_TESTID.PAGE_NEXT_BUTTON}\n aria-label=\"Go to next page\"\n {...globalAttributes}\n {...xstyledProps}\n {...ownerPropsConfig}\n onClick={() => {\n if (canNextPage) onNextPage();\n }}\n >\n <ChevronRight color={canNextPage ? ['brand-primary', '700'] : ['neutral', '500']} />\n </NextPageButton>\n );\n};\n\nDSPageNextButton.displayName = DSPageNextButtonName;\nconst DSPageNextButtonWithSchema = describe(DSPageNextButton);\nDSPageNextButtonWithSchema.propTypes = DSPageNextButtonPropTypesSchema;\n\nexport { DSPageNextButton, DSPageNextButtonWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADiEjB;AAjEN,8BAAyB;AACzB,uBAAuB;AAGvB,0BAA2B;AAC3B,sBAA6B;AAC7B,+BAAkC;AAClC,uBAKO;AACP,mCAAwE;AAExE,MAAM,qBAAiB,yBAAO,gCAAY;AAAA,EACxC,MAAM;AAAA,EACN,MAAM,wCAAuB;AAAA,EAC7B,0BAA0B;AAC5B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAiByB,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,YAKpD,CAAC,UAAW,MAAM,WAAW,gBAAgB,SAAU;AAAA;AAGnE,MAAM,mBAAiE,CAAC,UAAU;AAChF,QAAM;AAAA,IACJ,kBAAkB,EAAE,aAAa,WAAW;AAAA,IAC5C;AAAA,IACA;AAAA,IACA;AAAA,EACF,QAAI,4CAAkB,KAAK;AAE3B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU,CAAC;AAAA,MACX,YAAW;AAAA,MACX,eAAa,8CAA6B;AAAA,MAC1C,cAAW;AAAA,MACV,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACJ,SAAS,MAAM;AACb,YAAI,YAAa,YAAW;AAAA,MAC9B;AAAA,MAEA,sDAAC,gCAAa,OAAO,cAAc,CAAC,iBAAiB,KAAK,IAAI,CAAC,WAAW,KAAK,GAAG;AAAA;AAAA,EACpF;AAEJ;AAEA,iBAAiB,cAAc;AAC/B,MAAM,iCAA6B,kCAAS,gBAAgB;AAC5D,2BAA2B,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var usePageNextButton_exports = {};
30
+ __export(usePageNextButton_exports, {
31
+ usePageNextButton: () => usePageNextButton
32
+ });
33
+ module.exports = __toCommonJS(usePageNextButton_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
+ var import_react = __toESM(require("react"));
37
+ var import_react_desc_prop_types = require("../react-desc-prop-types.js");
38
+ var import_useValidateProps = require("./useValidateProps.js");
39
+ const usePageNextButton = (propsFromUser) => {
40
+ const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(propsFromUser, import_react_desc_prop_types.defaultProps);
41
+ (0, import_useValidateProps.useValidateProps)(propsWithDefault, import_react_desc_prop_types.DSPageNextButtonPropTypesSchema);
42
+ const xstyledProps = (0, import_ds_props_helpers.useGetXstyledProps)(propsWithDefault);
43
+ const globalAttributes = (0, import_ds_props_helpers.useGetGlobalAttributes)(propsWithDefault);
44
+ const ownerPropsConfig = (0, import_ds_props_helpers.useOwnerProps)(propsWithDefault);
45
+ return import_react.default.useMemo(
46
+ () => ({
47
+ propsWithDefault,
48
+ xstyledProps,
49
+ globalAttributes,
50
+ ownerPropsConfig
51
+ }),
52
+ [propsWithDefault, xstyledProps, globalAttributes, ownerPropsConfig]
53
+ );
54
+ };
55
+ //# sourceMappingURL=usePageNextButton.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/parts/DSPageNextButton/config/usePageNextButton.ts", "../../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n useOwnerProps,\n} from '@elliemae/ds-props-helpers';\nimport React from 'react';\n\nimport type { DSButtonV3T } from '@elliemae/ds-button-v2';\nimport { type DSPageNextButtonT, DSPageNextButtonPropTypesSchema, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport const usePageNextButton = (propsFromUser: DSPageNextButtonT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSPageNextButtonT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSPageNextButtonPropTypesSchema);\n // =============================================================================\n // XSTYLED PROPS\n // =============================================================================\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n // =============================================================================\n // GLOBAL ATTRIBUTES\n // =============================================================================\n const globalAttributes = useGetGlobalAttributes<\n DSPageNextButtonT.InternalProps,\n HTMLButtonElement,\n DSButtonV3T.Props\n >(propsWithDefault);\n // =============================================================================\n // OWNER PROPS CONFIG\n // =============================================================================\n const ownerPropsConfig = useOwnerProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n // custom code goes here, this is an example\n // const instanceUid = React.useMemo(() => `ds-page-next-button-2-${uid(5)}`, []);\n\n // =============================================================================\n // HELPERS HOOKS CONFIGS\n // =============================================================================\n // const eventHandlers = useEventHandlers({ propsWithDefault, instanceUid }); // <-- complex logic should be made atomics this way\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n xstyledProps,\n globalAttributes,\n ownerPropsConfig,\n }),\n [propsWithDefault, xstyledProps, globalAttributes, ownerPropsConfig],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAKO;AACP,mBAAkB;AAGlB,mCAAsF;AACtF,8BAAiC;AAE1B,MAAM,oBAAoB,CAAC,kBAA2C;AAI3E,QAAM,uBAAmB,sDAA8D,eAAe,yCAAY;AAClH,gDAAiB,kBAAkB,4DAA+B;AAIlE,QAAM,mBAAe,4CAAmB,gBAAgB;AAIxD,QAAM,uBAAmB,gDAIvB,gBAAgB;AAIlB,QAAM,uBAAmB,uCAAc,gBAAgB;AAYvD,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,kBAAkB,cAAc,kBAAkB,gBAAgB;AAAA,EACrE;AACF;",
6
+ "names": ["React"]
7
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var useValidateProps_exports = {};
30
+ __export(useValidateProps_exports, {
31
+ useValidateProps: () => useValidateProps
32
+ });
33
+ module.exports = __toCommonJS(useValidateProps_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
+ var import_constants = require("../constants/index.js");
37
+ const useValidateProps = (props, propTypes) => {
38
+ (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(props, propTypes, import_constants.DSPageNextButtonName);
39
+ };
40
+ //# sourceMappingURL=useValidateProps.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/parts/DSPageNextButton/config/useValidateProps.ts", "../../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport type { ValidationMap } from '@elliemae/ds-props-helpers';\nimport { type DSPageNextButtonT } from '../react-desc-prop-types.js';\nimport { DSPageNextButtonName } from '../constants/index.js';\n\nexport const useValidateProps = (\n props: DSPageNextButtonT.InternalProps,\n propTypes: ValidationMap<DSPageNextButtonT.Props>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSPageNextButtonName);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA+C;AAG/C,uBAAqC;AAE9B,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,8DAA+B,OAAO,WAAW,qCAAoB;AACvE;",
6
+ "names": []
7
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var constants_exports = {};
30
+ __export(constants_exports, {
31
+ DSPageNextButtonName: () => DSPageNextButtonName,
32
+ DSPaginationName: () => import_constants.DSPaginationName,
33
+ PAGE_NEXT_BUTTON_DATA_TESTID: () => PAGE_NEXT_BUTTON_DATA_TESTID,
34
+ PAGE_NEXT_BUTTON_SLOTS: () => PAGE_NEXT_BUTTON_SLOTS
35
+ });
36
+ module.exports = __toCommonJS(constants_exports);
37
+ var React = __toESM(require("react"));
38
+ var import_ds_system = require("@elliemae/ds-system");
39
+ var import_constants = require("../../../constants/index.js");
40
+ const DSPageNextButtonName = "DSPageNextButton";
41
+ const PAGE_NEXT_BUTTON_SLOTS = {
42
+ PAGE_NEXT_BUTTON: "next-button"
43
+ };
44
+ const PAGE_NEXT_BUTTON_DATA_TESTID = {
45
+ ...(0, import_ds_system.slotObjectToDataTestIds)(import_constants.DSPaginationName, PAGE_NEXT_BUTTON_SLOTS),
46
+ PAGE_NEXT_BUTTON: "data-table-pagination-next-button"
47
+ };
48
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/parts/DSPageNextButton/constants/index.ts", "../../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\nimport { DSPaginationName } from '../../../constants/index.js';\nexport { DSPaginationName };\n\nexport const DSPageNextButtonName = 'DSPageNextButton';\n\n// we are naming this with the ${component_name}_slots convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const PAGE_NEXT_BUTTON_SLOTS = {\n PAGE_NEXT_BUTTON: 'next-button',\n} as const;\n\n// we are naming this with the ${component_name}_data_testid convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const PAGE_NEXT_BUTTON_DATA_TESTID = {\n ...slotObjectToDataTestIds(DSPaginationName, PAGE_NEXT_BUTTON_SLOTS),\n PAGE_NEXT_BUTTON: 'data-table-pagination-next-button',\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AACxC,uBAAiC;AAG1B,MAAM,uBAAuB;AAG7B,MAAM,yBAAyB;AAAA,EACpC,kBAAkB;AACpB;AAGO,MAAM,+BAA+B;AAAA,EAC1C,OAAG,0CAAwB,mCAAkB,sBAAsB;AAAA,EACnE,kBAAkB;AACpB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var DSPageNextButton_exports = {};
30
+ __export(DSPageNextButton_exports, {
31
+ DSPageNextButton: () => import_DSPageNextButton.DSPageNextButton,
32
+ DSPageNextButtonName: () => import_constants.DSPageNextButtonName,
33
+ DSPageNextButtonWithSchema: () => import_DSPageNextButton.DSPageNextButtonWithSchema,
34
+ PAGE_NEXT_BUTTON_DATA_TESTID: () => import_constants.PAGE_NEXT_BUTTON_DATA_TESTID,
35
+ PAGE_NEXT_BUTTON_SLOTS: () => import_constants.PAGE_NEXT_BUTTON_SLOTS
36
+ });
37
+ module.exports = __toCommonJS(DSPageNextButton_exports);
38
+ var React = __toESM(require("react"));
39
+ var import_DSPageNextButton = require("./DSPageNextButton.js");
40
+ var import_constants = require("./constants/index.js");
41
+ //# sourceMappingURL=index.js.map