@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
@@ -28,19 +28,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var styled_exports = {};
30
30
  __export(styled_exports, {
31
- DSPaginationSeparator: () => DSPaginationSeparator,
32
31
  InvisibleDiv: () => InvisibleDiv,
33
- PaginationDropdownButton: () => PaginationDropdownButton,
34
- PreviousNextPageButton: () => PreviousNextPageButton,
35
- StyledPaginationContainer: () => StyledPaginationContainer,
36
- StyledPaginationWrapper: () => StyledPaginationWrapper
32
+ PaginationDropdownButtonPerPageSelector: () => PaginationDropdownButtonPerPageSelector,
33
+ StyledHeader: () => StyledHeader
37
34
  });
38
35
  module.exports = __toCommonJS(styled_exports);
39
36
  var React = __toESM(require("react"));
40
- var import_ds_grid = require("@elliemae/ds-grid");
41
37
  var import_ds_button_v2 = require("@elliemae/ds-button-v2");
42
38
  var import_ds_system = require("@elliemae/ds-system");
43
- var import_DSPaginationDefinitions = require("./DSPaginationDefinitions.js");
39
+ var import_constants = require("./constants/index.js");
40
+ const fontSize13Base13 = 13 / 13;
41
+ const fontSize13Base16 = 13 / 16;
42
+ const fontSize12Base13 = 12 / 13;
43
+ const fontSize12Base16 = 12 / 16;
44
44
  const styledFocusCss = import_ds_system.css`
45
45
  &:after {
46
46
  display: block;
@@ -55,27 +55,6 @@ const styledFocusCss = import_ds_system.css`
55
55
  z-index: 7;
56
56
  }
57
57
  `;
58
- const StyledPaginationContainer = (0, import_ds_system.styled)(import_ds_grid.Grid, { name: import_DSPaginationDefinitions.DSPaginationName, slot: import_DSPaginationDefinitions.PaginationSlots.ROOT })`
59
- height: 42px;
60
- max-width: 100%;
61
- align-items: center;
62
- justify-content: center;
63
- box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.5);
64
- position: relative;
65
- ${import_ds_system.xStyledCommonProps}
66
- `;
67
- const StyledPaginationWrapper = (0, import_ds_system.styled)("div", { name: import_DSPaginationDefinitions.DSPaginationName, slot: import_DSPaginationDefinitions.PaginationSlots.WRAPPER })`
68
- display: grid;
69
- grid-auto-flow: column;
70
- justify-content: center;
71
- align-items: center;
72
- `;
73
- const DSPaginationSeparator = (0, import_ds_system.styled)(import_ds_grid.Grid, { name: import_DSPaginationDefinitions.DSPaginationName, slot: import_DSPaginationDefinitions.PaginationSlots.SEPARATOR })`
74
- background-color: ${(props) => props.theme.colors.neutral[300]};
75
- width: 1px;
76
- height: 30px;
77
- ${import_ds_system.xStyledCommonProps}
78
- `;
79
58
  const InvisibleDiv = import_ds_system.styled.div`
80
59
  opacity: 0;
81
60
  white-space: nowrap;
@@ -83,8 +62,8 @@ const InvisibleDiv = import_ds_system.styled.div`
83
62
  text-overflow: ellipsis;
84
63
  position: absolute;
85
64
  `;
86
- const PaginationDropdownButton = (0, import_ds_system.styled)(import_ds_button_v2.DSButtonV2)`
87
- height: 42px;
65
+ const paginationDropdownButtonCommonStyles = import_ds_system.css`
66
+ min-height: 42px;
88
67
  display: grid;
89
68
  grid-auto-flow: column;
90
69
  justify-content: center;
@@ -106,17 +85,33 @@ const PaginationDropdownButton = (0, import_ds_system.styled)(import_ds_button_v
106
85
  }
107
86
  white-space: nowrap;
108
87
  `;
109
- const PreviousNextPageButton = (0, import_ds_system.styled)(import_ds_button_v2.DSButtonV2)`
110
- height: 42px;
111
- display: grid;
112
- place-items: center;
113
- position: relative;
114
- padding-left: 8px;
115
- padding-right: 8px;
116
- border-radius: 0;
117
- cursor: ${(props) => props.disabled ? "not-allowed" : "pointer"};
118
- :focus {
119
- ${styledFocusCss}
88
+ const PaginationDropdownButtonPerPageSelector = (0, import_ds_system.styled)(import_ds_button_v2.DSButtonV3, {
89
+ name: import_constants.DSPaginationName,
90
+ slot: import_constants.PER_PAGE_SELECTOR_SLOTS.PER_PAGE_SELECTOR,
91
+ preserveLegacyDataTestId: true
92
+ })`
93
+ ${paginationDropdownButtonCommonStyles}
94
+ /**
95
+ * Pagination uses DSTypography internally, but each typography variant defines
96
+ * its own font-size. When these components are placed inside a styled() wrapper,
97
+ * trying to style them via styled(DSTypography) triggers TypeScript errors
98
+ * because DSTypography exposes "as" props and variant-specific overrides.
99
+ *
100
+ * Instead of wrapping DSTypography directly in styled(), we target the
101
+ * underlying rendered elements via className/id. This avoids the TS conflicts
102
+ * while still allowing us to override their font-size reliably.
103
+ */
104
+ .typography-per-page-selector {
105
+ font-size: ${fontSize13Base16}rem;
106
+ @media (min-width: ${({ theme }) => theme.breakpoints.small}) {
107
+ font-size: ${fontSize13Base13}rem;
108
+ }
109
+ }
110
+ `;
111
+ const StyledHeader = import_ds_system.styled.div`
112
+ font-size: ${fontSize12Base16}rem;
113
+ @media (min-width: ${({ theme }) => theme.breakpoints.small}) {
114
+ font-size: ${fontSize12Base13}rem;
120
115
  }
121
116
  `;
122
117
  //# sourceMappingURL=styled.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/parts/DSPerPageSelector/styled.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { DSButtonV3 } from '@elliemae/ds-button-v2';\n\nimport { css, styled } from '@elliemae/ds-system';\nimport type {} from '@xstyled/system';\nimport { DSPaginationName, PER_PAGE_SELECTOR_SLOTS } from './constants/index.js';\nconst fontSize13Base13 = 13 / 13;\nconst fontSize13Base16 = 13 / 16;\n\nconst fontSize12Base13 = 12 / 13;\nconst fontSize12Base16 = 12 / 16;\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 InvisibleDiv = styled.div`\n opacity: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n position: absolute;\n`;\n\nconst paginationDropdownButtonCommonStyles = css`\n min-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`;\nexport const PaginationDropdownButtonPerPageSelector = styled(DSButtonV3, {\n name: DSPaginationName,\n slot: PER_PAGE_SELECTOR_SLOTS.PER_PAGE_SELECTOR,\n preserveLegacyDataTestId: true,\n})`\n ${paginationDropdownButtonCommonStyles}\n /**\n * Pagination uses DSTypography internally, but each typography variant defines\n * its own font-size. When these components are placed inside a styled() wrapper,\n * trying to style them via styled(DSTypography) triggers TypeScript errors\n * because DSTypography exposes \"as\" props and variant-specific overrides.\n *\n * Instead of wrapping DSTypography directly in styled(), we target the\n * underlying rendered elements via className/id. This avoids the TS conflicts\n * while still allowing us to override their font-size reliably.\n */\n .typography-per-page-selector {\n font-size: ${fontSize13Base16}rem;\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${fontSize13Base13}rem;\n }\n }\n`;\n\nexport const StyledHeader = styled.div`\n font-size: ${fontSize12Base16}rem;\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) {\n font-size: ${fontSize12Base13}rem;\n }\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAA2B;AAE3B,uBAA4B;AAE5B,uBAA0D;AAC1D,MAAM,mBAAmB,KAAK;AAC9B,MAAM,mBAAmB,KAAK;AAE9B,MAAM,mBAAmB,KAAK;AAC9B,MAAM,mBAAmB,KAAK;AAE9B,MAAM,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBASC,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA;AAAA;AAAA;AAAA;AAMvD,MAAM,eAAe,wBAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQnC,MAAM,uCAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAc5B,CAAC,UAAU,MAAM,MAAM,YAAY,OAAO;AAAA;AAAA,MAErD,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOb,MAAM,8CAA0C,yBAAO,gCAAY;AAAA,EACxE,MAAM;AAAA,EACN,MAAM,yCAAwB;AAAA,EAC9B,0BAA0B;AAC5B,CAAC;AAAA,IACG,oCAAoC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAYvB,gBAAgB;AAAA,yBACR,CAAC,EAAE,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,mBAC5C,gBAAgB;AAAA;AAAA;AAAA;AAK5B,MAAM,eAAe,wBAAO;AAAA,eACpB,gBAAgB;AAAA,uBACR,CAAC,EAAE,MAAM,MAAM,MAAM,YAAY,KAAK;AAAA,iBAC5C,gBAAgB;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,32 @@
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 __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var React = __toESM(require("react"));
25
+ const SlotPropsAsObj = {
26
+ dsPaginationPerPageSelector: { "aria-label": "just a typescript test" }
27
+ };
28
+ const SlotPropsAsFunctions = {
29
+ dsPaginationPerPageSelector: () => ({ "aria-label": "just a typescript test" })
30
+ };
31
+ const EnsureAllSlotsExistInSlotFunctionArguments = SlotPropsAsFunctions;
32
+ //# sourceMappingURL=slots-props.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/parts/DSPerPageSelector/typescript-testing/slots-props.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\n\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { DSPaginationName, PER_PAGE_SELECTOR_SLOTS } from '../constants/index.js';\nimport type { DSPerPageSelectorT } from '../react-desc-prop-types.js';\n\nconst SlotPropsAsObj: Partial<DSPerPageSelectorT.Props> = {\n dsPaginationPerPageSelector: { 'aria-label': 'just a typescript test' },\n};\nconst SlotPropsAsFunctions: DSPerPageSelectorT.SlotFunctionArguments = {\n dsPaginationPerPageSelector: () => ({ 'aria-label': 'just a typescript test' }),\n};\nconst EnsureAllSlotsExistInSlotFunctionArguments: Required<\n TypescriptHelpersT.PropsForSlots<typeof DSPaginationName, typeof PER_PAGE_SELECTOR_SLOTS>\n> = SlotPropsAsFunctions;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACMvB,MAAM,iBAAoD;AAAA,EACxD,6BAA6B,EAAE,cAAc,yBAAyB;AACxE;AACA,MAAM,uBAAiE;AAAA,EACrE,6BAA6B,OAAO,EAAE,cAAc,yBAAyB;AAC/E;AACA,MAAM,6CAEF;",
6
+ "names": []
7
+ }
@@ -86,4 +86,4 @@ const ExampleUsageComponent = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)
86
86
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSPerPageSelector, { ...testDefinitionAsConst }),
87
87
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSPerPageSelector, { pageSize: 10, onPageSizeChange: () => null, perPageStep: 5, minPerPage: 0, maxPerPage: 100 })
88
88
  ] });
89
- //# sourceMappingURL=typescript-per-page-selector-valid.js.map
89
+ //# sourceMappingURL=typescript-testing.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/parts/DSPerPageSelector/typescript-testing/typescript-testing.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { DSPerPageSelector } from '../index.js';\nimport type { DSPerPageSelectorT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSPerPageSelectorT.Props;\ntype ComponentPropsInternals = DSPerPageSelectorT.InternalProps;\ntype ComponentPropsDefaultProps = DSPerPageSelectorT.DefaultProps;\ntype ComponentPropsOptionalProps = DSPerPageSelectorT.OptionalProps;\ntype ComponentPropsRequiredProps = DSPerPageSelectorT.RequiredProps;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {\n perPageOptions: [5, 10, 20],\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {\n onPageSizeChange: () => null,\n perPageStep: 5,\n};\n\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\n\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n pageSize: 10,\n onPageSizeChange: () => null,\n perPageStep: 5,\n minPerPage: 0,\n maxPerPage: 100,\n};\n\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\nconst testInternalPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsInternals;\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n pageSize: 10,\n onPageSizeChange: () => null,\n perPageStep: 5,\n minPerPage: 0,\n maxPerPage: 100,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n pageSize: 10,\n onPageSizeChange: () => null,\n perPageStep: 5,\n minPerPage: 0,\n maxPerPage: 100,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n pageSize: 10,\n onPageSizeChange: () => null,\n perPageStep: 5,\n minPerPage: 0,\n maxPerPage: 100,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <DSPerPageSelector {...testExplicitDefinition} />\n <DSPerPageSelector {...testInferedTypeCompatibility} />\n <DSPerPageSelector {...testDefinitionAsConst} />\n {/* works with inline values */}\n <DSPerPageSelector pageSize={10} onPageSizeChange={() => null} perPageStep={5} minPerPage={0} maxPerPage={100} />\n </>\n);\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACoFrB;AAnFF,eAAkC;AAUlC,MAAM,oBAAiD,CAAC;AAExD,MAAM,oBAAiD;AAAA,EACrD,gBAAgB,CAAC,GAAG,IAAI,EAAE;AAC5B;AAIA,MAAM,sBAA2D;AAAA,EAC/D,kBAAkB,MAAM;AAAA,EACxB,aAAa;AACf;AAEA,MAAM,YAAkC;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,uBAA6D;AAAA,EACjE,UAAU;AAAA,EACV,kBAAkB,MAAM;AAAA,EACxB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,YAAY;AACd;AAEA,MAAM,oBAA6C;AAAA,EACjD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,4BAA4B;AAAA,EAChC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,yBAA+C;AAAA,EACnD,UAAU;AAAA,EACV,kBAAkB,MAAM;AAAA,EACxB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,YAAY;AACd;AAGA,MAAM,+BAA+B;AAAA,EACnC,UAAU;AAAA,EACV,kBAAkB,MAAM;AAAA,EACxB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,YAAY;AACd;AAEA,MAAM,wBAAwB;AAAA,EAC5B,UAAU;AAAA,EACV,kBAAkB,MAAM;AAAA,EACxB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,YAAY;AACd;AAEA,MAAM,wBAAwB,MAC5B,4EAEE;AAAA,8CAAC,8BAAmB,GAAG,wBAAwB;AAAA,EAC/C,4CAAC,8BAAmB,GAAG,8BAA8B;AAAA,EACrD,4CAAC,8BAAmB,GAAG,uBAAuB;AAAA,EAE9C,4CAAC,8BAAkB,UAAU,IAAI,kBAAkB,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,YAAY,KAAK;AAAA,GACjH;",
6
+ "names": []
7
+ }
@@ -33,13 +33,12 @@ __export(PaginationContent_exports, {
33
33
  module.exports = __toCommonJS(PaginationContent_exports);
34
34
  var React = __toESM(require("react"));
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
36
- var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
37
- var import_DSPaginationContainer = require("./DSPaginationContainer.js");
38
- var import_styled = require("../styled.js");
36
+ var import_DSPaginationContainer = require("./DSPaginationContainer/index.js");
37
+ var import_DSPaginationSeparator = require("./DSPaginationSeparator/index.js");
39
38
  var import_DSPerPageSelector = require("./DSPerPageSelector/index.js");
40
39
  var import_DSPaginator = require("./DSPaginator/index.js");
41
- var import_DSPagePrevButton = require("./DSPagePrevButton.js");
42
- var import_DSPageNextButton = require("./DSPageNextButton.js");
40
+ var import_DSPagePrevButton = require("./DSPagePrevButton/index.js");
41
+ var import_DSPageNextButton = require("./DSPageNextButton/index.js");
43
42
  const PaginationContent = (props) => {
44
43
  const {
45
44
  pageIndex,
@@ -60,7 +59,6 @@ const PaginationContent = (props) => {
60
59
  perPageStep,
61
60
  minPerPage
62
61
  } = props;
63
- const ownerPropsConfig = (0, import_ds_props_helpers.useOwnerProps)(props);
64
62
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_DSPaginationContainer.DSPaginationContainer, { ...props, children: [
65
63
  showPerPageSelector && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
66
64
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -74,10 +72,10 @@ const PaginationContent = (props) => {
74
72
  minPerPage
75
73
  }
76
74
  ),
77
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.DSPaginationSeparator, { mr: 24, ...ownerPropsConfig })
75
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DSPaginationSeparator.DSPaginationSeparator, { mr: 24 })
78
76
  ] }),
79
77
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DSPagePrevButton.DSPagePrevButton, { canPreviousPage, onPreviousPage }),
80
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.DSPaginationSeparator, { ...ownerPropsConfig }),
78
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DSPaginationSeparator.DSPaginationSeparator, {}),
81
79
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
82
80
  import_DSPaginator.DSPaginator,
83
81
  {
@@ -89,7 +87,7 @@ const PaginationContent = (props) => {
89
87
  pageDetailsTitle
90
88
  }
91
89
  ),
92
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.DSPaginationSeparator, { ...ownerPropsConfig }),
90
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DSPaginationSeparator.DSPaginationSeparator, {}),
93
91
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DSPageNextButton.DSPageNextButton, { canNextPage, onNextPage })
94
92
  ] });
95
93
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/parts/PaginationContent.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable react/prop-types */\nimport React from 'react';\nimport { useOwnerProps } from '@elliemae/ds-props-helpers';\nimport { DSPaginationContainer } from './DSPaginationContainer.js';\nimport { DSPaginationSeparator } from '../styled.js';\nimport { DSPerPageSelector } from './DSPerPageSelector/index.js';\nimport { DSPaginator } from './DSPaginator/index.js';\nimport { DSPagePrevButton } from './DSPagePrevButton.js';\nimport { DSPageNextButton } from './DSPageNextButton.js';\nimport type { DSPaginationT } from '../react-desc-prop-types.js';\n\nexport const PaginationContent: React.ComponentType<DSPaginationT.InternalProps> = (props) => {\n const {\n pageIndex,\n pageSize,\n canPreviousPage,\n canNextPage,\n onPageSizeChange,\n onNextPage,\n onPreviousPage,\n onPageChange,\n pageCount,\n isLoadingPageCount,\n showPerPageSelector,\n pageDetails,\n pageDetailsTitle,\n perPageOptions,\n maxPerPage,\n perPageStep,\n minPerPage,\n } = props;\n\n const ownerPropsConfig = useOwnerProps(props);\n\n return (\n <DSPaginationContainer {...props}>\n {showPerPageSelector && (\n <>\n <DSPerPageSelector\n pageSize={pageSize}\n onPageSizeChange={onPageSizeChange}\n perPageOptions={perPageOptions}\n maxPerPage={maxPerPage}\n perPageStep={perPageStep}\n minPerPage={minPerPage}\n />\n <DSPaginationSeparator mr={24} {...ownerPropsConfig} />\n </>\n )}\n <DSPagePrevButton canPreviousPage={canPreviousPage} onPreviousPage={onPreviousPage} />\n <DSPaginationSeparator {...ownerPropsConfig} />\n\n <DSPaginator\n pageCount={pageCount}\n isLoadingPageCount={isLoadingPageCount}\n pageIndex={pageIndex}\n onPageChange={onPageChange}\n pageDetails={pageDetails}\n pageDetailsTitle={pageDetailsTitle}\n />\n <DSPaginationSeparator {...ownerPropsConfig} />\n\n <DSPageNextButton canNextPage={canNextPage} onNextPage={onNextPage} />\n </DSPaginationContainer>\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADqCf;AAnCR,8BAA8B;AAC9B,mCAAsC;AACtC,oBAAsC;AACtC,+BAAkC;AAClC,yBAA4B;AAC5B,8BAAiC;AACjC,8BAAiC;AAG1B,MAAM,oBAAsE,CAAC,UAAU;AAC5F,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,QAAM,uBAAmB,uCAAc,KAAK;AAE5C,SACE,6CAAC,sDAAuB,GAAG,OACxB;AAAA,2BACC,4EACE;AAAA;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA;AAAA,MACF;AAAA,MACA,4CAAC,uCAAsB,IAAI,IAAK,GAAG,kBAAkB;AAAA,OACvD;AAAA,IAEF,4CAAC,4CAAiB,iBAAkC,gBAAgC;AAAA,IACpF,4CAAC,uCAAuB,GAAG,kBAAkB;AAAA,IAE7C;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACF;AAAA,IACA,4CAAC,uCAAuB,GAAG,kBAAkB;AAAA,IAE7C,4CAAC,4CAAiB,aAA0B,YAAwB;AAAA,KACtE;AAEJ;",
4
+ "sourcesContent": ["/* eslint-disable react/prop-types */\nimport React from 'react';\n\nimport { DSPaginationContainer } from './DSPaginationContainer/index.js';\nimport { DSPaginationSeparator } from './DSPaginationSeparator/index.js';\nimport { DSPerPageSelector } from './DSPerPageSelector/index.js';\nimport { DSPaginator } from './DSPaginator/index.js';\nimport { DSPagePrevButton } from './DSPagePrevButton/index.js';\nimport { DSPageNextButton } from './DSPageNextButton/index.js';\nimport type { DSPaginationT } from '../react-desc-prop-types.js';\n\nexport const PaginationContent: React.ComponentType<DSPaginationT.InternalProps> = (props) => {\n const {\n pageIndex,\n pageSize,\n canPreviousPage,\n canNextPage,\n onPageSizeChange,\n onNextPage,\n onPreviousPage,\n onPageChange,\n pageCount,\n isLoadingPageCount,\n showPerPageSelector,\n pageDetails,\n pageDetailsTitle,\n perPageOptions,\n maxPerPage,\n perPageStep,\n minPerPage,\n } = props;\n\n return (\n <DSPaginationContainer {...props}>\n {showPerPageSelector && (\n <>\n <DSPerPageSelector\n pageSize={pageSize}\n onPageSizeChange={onPageSizeChange}\n perPageOptions={perPageOptions}\n maxPerPage={maxPerPage}\n perPageStep={perPageStep}\n minPerPage={minPerPage}\n />\n <DSPaginationSeparator mr={24} />\n </>\n )}\n <DSPagePrevButton canPreviousPage={canPreviousPage} onPreviousPage={onPreviousPage} />\n <DSPaginationSeparator />\n\n <DSPaginator\n pageCount={pageCount}\n isLoadingPageCount={isLoadingPageCount}\n pageIndex={pageIndex}\n onPageChange={onPageChange}\n pageDetails={pageDetails}\n pageDetailsTitle={pageDetailsTitle}\n />\n <DSPaginationSeparator />\n\n <DSPageNextButton canNextPage={canNextPage} onNextPage={onNextPage} />\n </DSPaginationContainer>\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADmCf;AAhCR,mCAAsC;AACtC,mCAAsC;AACtC,+BAAkC;AAClC,yBAA4B;AAC5B,8BAAiC;AACjC,8BAAiC;AAG1B,MAAM,oBAAsE,CAAC,UAAU;AAC5F,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,SACE,6CAAC,sDAAuB,GAAG,OACxB;AAAA,2BACC,4EACE;AAAA;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA;AAAA,MACF;AAAA,MACA,4CAAC,sDAAsB,IAAI,IAAI;AAAA,OACjC;AAAA,IAEF,4CAAC,4CAAiB,iBAAkC,gBAAgC;AAAA,IACpF,4CAAC,sDAAsB;AAAA,IAEvB;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACF;AAAA,IACA,4CAAC,sDAAsB;AAAA,IAEvB,4CAAC,4CAAiB,aAA0B,YAAwB;AAAA,KACtE;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -29,21 +29,42 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  var parts_exports = {};
30
30
  __export(parts_exports, {
31
31
  DSPageNextButton: () => import_DSPageNextButton.DSPageNextButton,
32
+ DSPageNextButtonName: () => import_DSPageNextButton.DSPageNextButtonName,
32
33
  DSPageNextButtonWithSchema: () => import_DSPageNextButton.DSPageNextButtonWithSchema,
33
34
  DSPagePrevButton: () => import_DSPagePrevButton.DSPagePrevButton,
35
+ DSPagePrevButtonName: () => import_DSPagePrevButton.DSPagePrevButtonName,
34
36
  DSPagePrevButtonWithSchema: () => import_DSPagePrevButton.DSPagePrevButtonWithSchema,
35
37
  DSPaginationContainer: () => import_DSPaginationContainer.DSPaginationContainer,
38
+ DSPaginationContainerName: () => import_DSPaginationContainer.DSPaginationContainerName,
36
39
  DSPaginationContainerWithSchema: () => import_DSPaginationContainer.DSPaginationContainerWithSchema,
40
+ DSPaginationSeparator: () => import_DSPaginationSeparator.DSPaginationSeparator,
41
+ DSPaginationSeparatorName: () => import_DSPaginationSeparator.DSPaginationSeparatorName,
42
+ DSPaginationSeparatorWithSchema: () => import_DSPaginationSeparator.DSPaginationSeparatorWithSchema,
37
43
  DSPaginator: () => import_DSPaginator.DSPaginator,
44
+ DSPaginatorName: () => import_DSPaginator.DSPaginatorName,
38
45
  DSPaginatorWithSchema: () => import_DSPaginator.DSPaginatorWithSchema,
39
46
  DSPerPageSelector: () => import_DSPerPageSelector.DSPerPageSelector,
40
- DSPerPageSelectorWithSchema: () => import_DSPerPageSelector.DSPerPageSelectorWithSchema
47
+ DSPerPageSelectorName: () => import_DSPerPageSelector.DSPerPageSelectorName,
48
+ DSPerPageSelectorWithSchema: () => import_DSPerPageSelector.DSPerPageSelectorWithSchema,
49
+ PAGE_NEXT_BUTTON_DATA_TESTID: () => import_DSPageNextButton.PAGE_NEXT_BUTTON_DATA_TESTID,
50
+ PAGE_NEXT_BUTTON_SLOTS: () => import_DSPageNextButton.PAGE_NEXT_BUTTON_SLOTS,
51
+ PAGE_PREV_BUTTON_DATA_TESTID: () => import_DSPagePrevButton.PAGE_PREV_BUTTON_DATA_TESTID,
52
+ PAGE_PREV_BUTTON_SLOTS: () => import_DSPagePrevButton.PAGE_PREV_BUTTON_SLOTS,
53
+ PAGINATION_CONTAINER_DATA_TESTID: () => import_DSPaginationContainer.PAGINATION_CONTAINER_DATA_TESTID,
54
+ PAGINATION_CONTAINER_SLOTS: () => import_DSPaginationContainer.PAGINATION_CONTAINER_SLOTS,
55
+ PAGINATION_SEPARATOR_DATA_TESTID: () => import_DSPaginationSeparator.PAGINATION_SEPARATOR_DATA_TESTID,
56
+ PAGINATION_SEPARATOR_SLOTS: () => import_DSPaginationSeparator.PAGINATION_SEPARATOR_SLOTS,
57
+ PAGINATOR_DATA_TESTID: () => import_DSPaginator.PAGINATOR_DATA_TESTID,
58
+ PAGINATOR_SLOTS: () => import_DSPaginator.PAGINATOR_SLOTS,
59
+ PER_PAGE_SELECTOR_DATA_TESTID: () => import_DSPerPageSelector.PER_PAGE_SELECTOR_DATA_TESTID,
60
+ PER_PAGE_SELECTOR_SLOTS: () => import_DSPerPageSelector.PER_PAGE_SELECTOR_SLOTS
41
61
  });
42
62
  module.exports = __toCommonJS(parts_exports);
43
63
  var React = __toESM(require("react"));
44
- var import_DSPageNextButton = require("./DSPageNextButton.js");
45
- var import_DSPagePrevButton = require("./DSPagePrevButton.js");
46
- var import_DSPaginationContainer = require("./DSPaginationContainer.js");
64
+ var import_DSPageNextButton = require("./DSPageNextButton/index.js");
65
+ var import_DSPagePrevButton = require("./DSPagePrevButton/index.js");
66
+ var import_DSPaginationContainer = require("./DSPaginationContainer/index.js");
47
67
  var import_DSPerPageSelector = require("./DSPerPageSelector/index.js");
48
68
  var import_DSPaginator = require("./DSPaginator/index.js");
69
+ var import_DSPaginationSeparator = require("./DSPaginationSeparator/index.js");
49
70
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/parts/index.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["export { DSPageNextButton, DSPageNextButtonWithSchema } from './DSPageNextButton.js';\nexport { DSPagePrevButton, DSPagePrevButtonWithSchema } from './DSPagePrevButton.js';\nexport { DSPaginationContainer, DSPaginationContainerWithSchema } from './DSPaginationContainer.js';\nexport { DSPerPageSelector, DSPerPageSelectorWithSchema } from './DSPerPageSelector/index.js';\nexport { DSPaginator, DSPaginatorWithSchema } from './DSPaginator/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;ACAA,YAAuB;ADAvB,8BAA6D;AAC7D,8BAA6D;AAC7D,mCAAuE;AACvE,+BAA+D;AAC/D,yBAAmD;",
4
+ "sourcesContent": ["export {\n DSPageNextButton,\n DSPageNextButtonWithSchema,\n DSPageNextButtonName,\n PAGE_NEXT_BUTTON_DATA_TESTID,\n PAGE_NEXT_BUTTON_SLOTS,\n type DSPageNextButtonT,\n} from './DSPageNextButton/index.js';\nexport {\n DSPagePrevButton,\n DSPagePrevButtonWithSchema,\n DSPagePrevButtonName,\n PAGE_PREV_BUTTON_DATA_TESTID,\n PAGE_PREV_BUTTON_SLOTS,\n type DSPagePrevButtonT,\n} from './DSPagePrevButton/index.js';\nexport {\n DSPaginationContainer,\n DSPaginationContainerWithSchema,\n DSPaginationContainerName,\n PAGINATION_CONTAINER_DATA_TESTID,\n PAGINATION_CONTAINER_SLOTS,\n type DSPaginationContainerT,\n} from './DSPaginationContainer/index.js';\nexport {\n DSPerPageSelector,\n DSPerPageSelectorWithSchema,\n DSPerPageSelectorName,\n PER_PAGE_SELECTOR_DATA_TESTID,\n PER_PAGE_SELECTOR_SLOTS,\n type DSPerPageSelectorT,\n} from './DSPerPageSelector/index.js';\nexport {\n DSPaginator,\n DSPaginatorWithSchema,\n DSPaginatorName,\n PAGINATOR_DATA_TESTID,\n PAGINATOR_SLOTS,\n type DSPaginatorT,\n} from './DSPaginator/index.js';\nexport {\n DSPaginationSeparator,\n DSPaginationSeparatorWithSchema,\n DSPaginationSeparatorName,\n PAGINATION_SEPARATOR_DATA_TESTID,\n PAGINATION_SEPARATOR_SLOTS,\n type DSPaginationSeparatorT,\n} from './DSPaginationSeparator/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;ACAA,YAAuB;ADAvB,8BAOO;AACP,8BAOO;AACP,mCAOO;AACP,+BAOO;AACP,yBAOO;AACP,mCAOO;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/parts/DSPaginator/useOnElementOnResize.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../../src/parts/shared/useOnElementOnResize.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import type React from 'react';\nimport { useState, useEffect, useRef, useMemo } from 'react';\n\n// Custom hook to track dimension of a component\n// Taken and modified from https://stackoverflow.com/a/60218754\nexport const useOnElementResize = <T extends HTMLElement>(\n targetRef: React.RefObject<T>,\n): Record<'width' | 'height', number> => {\n const [width, setWidth] = useState(targetRef.current?.offsetWidth ?? 0);\n const [height, setHeight] = useState(targetRef.current?.offsetHeight ?? 0);\n const observer = useRef<ResizeObserver>();\n\n useEffect(() => {\n function outputsize() {\n setWidth(targetRef.current?.offsetWidth ?? 0);\n setHeight(targetRef.current?.offsetHeight ?? 0);\n }\n\n observer.current = new ResizeObserver(outputsize);\n const el = targetRef.current as Element | null;\n if (el) observer.current.observe(el);\n\n return () => {\n if (el) observer.current?.disconnect();\n };\n }, [targetRef]);\n\n return useMemo(\n () => ({\n width,\n height,\n }),\n [width, height],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAqD;AAI9C,MAAM,qBAAqB,CAChC,cACuC;AACvC,QAAM,CAAC,OAAO,QAAQ,QAAI,uBAAS,UAAU,SAAS,eAAe,CAAC;AACtE,QAAM,CAAC,QAAQ,SAAS,QAAI,uBAAS,UAAU,SAAS,gBAAgB,CAAC;AACzE,QAAM,eAAW,qBAAuB;AAExC,8BAAU,MAAM;AACd,aAAS,aAAa;AACpB,eAAS,UAAU,SAAS,eAAe,CAAC;AAC5C,gBAAU,UAAU,SAAS,gBAAgB,CAAC;AAAA,IAChD;AAEA,aAAS,UAAU,IAAI,eAAe,UAAU;AAChD,UAAM,KAAK,UAAU;AACrB,QAAI,GAAI,UAAS,QAAQ,QAAQ,EAAE;AAEnC,WAAO,MAAM;AACX,UAAI,GAAI,UAAS,SAAS,WAAW;AAAA,IACvC;AAAA,EACF,GAAG,CAAC,SAAS,CAAC;AAEd,aAAO;AAAA,IACL,OAAO;AAAA,MACL;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,OAAO,MAAM;AAAA,EAChB;AACF;",
6
6
  "names": []
@@ -28,52 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var react_desc_prop_types_exports = {};
30
30
  __export(react_desc_prop_types_exports, {
31
- DSPageNextButtonPropTypes: () => DSPageNextButtonPropTypes,
32
- DSPageNextButtonPropTypesSchema: () => DSPageNextButtonPropTypesSchema,
33
- DSPagePrevButtonPropTypes: () => DSPagePrevButtonPropTypes,
34
- DSPagePrevButtonPropTypesSchema: () => DSPagePrevButtonPropTypesSchema,
35
- DSPaginationContainerPropTypes: () => DSPaginationContainerPropTypes,
36
- DSPaginationContainerPropTypesSchema: () => DSPaginationContainerPropTypesSchema,
37
31
  DSPaginationPropTypes: () => DSPaginationPropTypes,
38
32
  DSPaginationPropTypesSchema: () => DSPaginationPropTypesSchema,
39
- DSPaginationStyledPartPropTypes: () => DSPaginationStyledPartPropTypes,
40
- DSPaginationStyledPartPropTypesSchema: () => DSPaginationStyledPartPropTypesSchema,
41
- DSPaginatorPropTypes: () => DSPaginatorPropTypes,
42
- DSPaginatorPropTypesSchema: () => DSPaginatorPropTypesSchema,
43
- DSPerPageSelectorPropTypes: () => DSPerPageSelectorPropTypes,
44
- DSPerPageSelectorPropTypesSchema: () => DSPerPageSelectorPropTypesSchema,
45
- defaultProps: () => defaultProps,
46
- pageNextButtonDefaultProps: () => pageNextButtonDefaultProps,
47
- pagePrevButtonDefaultProps: () => pagePrevButtonDefaultProps,
48
- paginatorDefaultProps: () => paginatorDefaultProps,
49
- perPageSelectorDefaultProps: () => perPageSelectorDefaultProps
33
+ defaultProps: () => defaultProps
50
34
  });
51
35
  module.exports = __toCommonJS(react_desc_prop_types_exports);
52
36
  var React = __toESM(require("react"));
53
37
  var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
54
- const perPageSelectorDefaultProps = {
55
- pageSize: 10,
56
- onPageSizeChange: () => null,
57
- perPageStep: 5,
58
- minPerPage: 0,
59
- maxPerPage: 100
60
- };
61
- const pagePrevButtonDefaultProps = {
62
- canPreviousPage: true,
63
- onPreviousPage: () => null
64
- };
65
- const pageNextButtonDefaultProps = {
66
- canNextPage: true,
67
- onNextPage: () => null
68
- };
69
- const paginatorDefaultProps = {
70
- pageCount: 0,
71
- isLoadingPageCount: false,
72
- pageIndex: 1,
73
- onPageChange: () => null,
74
- pageDetails: [],
75
- pageDetailsTitle: ""
76
- };
77
38
  const defaultProps = {
78
39
  pageCount: 0,
79
40
  pageIndex: 1,
@@ -116,50 +77,4 @@ const DSPaginationPropTypes = {
116
77
  isLoadingPageCount: import_ds_props_helpers.PropTypes.bool.description("Whether the page count is loading or not").defaultValue(false)
117
78
  };
118
79
  const DSPaginationPropTypesSchema = DSPaginationPropTypes;
119
- const DSPerPageSelectorPropTypes = {
120
- ...import_ds_props_helpers.globalAttributesPropTypes,
121
- ...import_ds_props_helpers.xstyledPropTypes,
122
- pageSize: import_ds_props_helpers.PropTypes.number.description("The current page size").defaultValue(10),
123
- onPageSizeChange: import_ds_props_helpers.PropTypes.func.description("Function invoked when the page size changes").defaultValue(() => null),
124
- perPageOptions: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.number, import_ds_props_helpers.PropTypes.object])).description("The available options for page size").defaultValue([10]),
125
- minPerPage: import_ds_props_helpers.PropTypes.number.description("Min for the per page options").defaultValue(0),
126
- maxPerPage: import_ds_props_helpers.PropTypes.number.description("Max for the per page options").defaultValue(100),
127
- perPageStep: import_ds_props_helpers.PropTypes.number.description("Step for the per page options").defaultValue(5)
128
- };
129
- const DSPerPageSelectorPropTypesSchema = DSPerPageSelectorPropTypes;
130
- const DSPagePrevButtonPropTypes = {
131
- ...import_ds_props_helpers.globalAttributesPropTypes,
132
- ...import_ds_props_helpers.xstyledPropTypes,
133
- canPreviousPage: import_ds_props_helpers.PropTypes.bool.description("Whether the previous button is disabled or not").defaultValue(true),
134
- onPreviousPage: import_ds_props_helpers.PropTypes.func.description("Function invoked when the previous button is pressed").defaultValue(() => null)
135
- };
136
- const DSPagePrevButtonPropTypesSchema = DSPagePrevButtonPropTypes;
137
- const DSPageNextButtonPropTypes = {
138
- ...import_ds_props_helpers.globalAttributesPropTypes,
139
- ...import_ds_props_helpers.xstyledPropTypes,
140
- canNextPage: import_ds_props_helpers.PropTypes.bool.description("Whether the next button is disabled or not").defaultValue(true),
141
- onNextPage: import_ds_props_helpers.PropTypes.func.description("Function invoked when next button is pressed").defaultValue(() => null)
142
- };
143
- const DSPageNextButtonPropTypesSchema = DSPageNextButtonPropTypes;
144
- const DSPaginatorPropTypes = {
145
- ...import_ds_props_helpers.globalAttributesPropTypes,
146
- ...import_ds_props_helpers.xstyledPropTypes,
147
- pageIndex: import_ds_props_helpers.PropTypes.number.description("Index of the current page, starting from 1").defaultValue(1),
148
- pageCount: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.number]).description("How many pages are there"),
149
- onPageChange: import_ds_props_helpers.PropTypes.func.description("Function invoked when the page changes").defaultValue(() => null),
150
- isLoadingPageCount: import_ds_props_helpers.PropTypes.bool.description("Whether the page count is loading or not").defaultValue(false),
151
- pageDetails: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.string).description("Details to provide for each page").defaultValue([]),
152
- pageDetailsTitle: import_ds_props_helpers.PropTypes.string.description("The title of the details (usually a column of your dataset)").defaultValue("")
153
- };
154
- const DSPaginatorPropTypesSchema = DSPaginatorPropTypes;
155
- const DSPaginationContainerPropTypes = {
156
- ...import_ds_props_helpers.globalAttributesPropTypes,
157
- ...import_ds_props_helpers.xstyledPropTypes
158
- };
159
- const DSPaginationContainerPropTypesSchema = DSPaginationContainerPropTypes;
160
- const DSPaginationStyledPartPropTypes = {
161
- ...import_ds_props_helpers.globalAttributesPropTypes,
162
- ...import_ds_props_helpers.xstyledPropTypes
163
- };
164
- const DSPaginationStyledPartPropTypesSchema = DSPaginationStyledPartPropTypes;
165
80
  //# sourceMappingURL=react-desc-prop-types.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* 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-v2';\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[] | readonly 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[] | readonly 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", "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;ACAA,YAAuB;ADEvB,8BAAuE;AAwJhE,MAAM,8BAAyE;AAAA,EACpF,UAAU;AAAA,EACV,kBAAkB,MAAM;AAAA,EACxB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,YAAY;AACd;AAEO,MAAM,6BAAuE;AAAA,EAClF,iBAAiB;AAAA,EACjB,gBAAgB,MAAM;AACxB;AAEO,MAAM,6BAAuE;AAAA,EAClF,aAAa;AAAA,EACb,YAAY,MAAM;AACpB;AAEO,MAAM,wBAA6D;AAAA,EACxE,WAAW;AAAA,EACX,oBAAoB;AAAA,EACpB,WAAW;AAAA,EACX,cAAc,MAAM;AAAA,EACpB,aAAa,CAAC;AAAA,EACd,kBAAkB;AACpB;AAEO,MAAM,eAA2C;AAAA,EACtD,WAAW;AAAA,EACX,WAAW;AAAA,EACX,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,UAAU;AAAA,EACV,qBAAqB;AAAA,EACrB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,kBAAkB,MAAM;AAAA,EACxB,gBAAgB,MAAM;AAAA,EACtB,YAAY,MAAM;AAAA,EAClB,cAAc,MAAM;AAAA,EACpB,aAAa,CAAC;AAAA,EACd,kBAAkB;AAAA,EAClB,OAAO;AACT;AAEO,MAAM,wBAAgE;AAAA,EAC3E,GAAG;AAAA,EACH,GAAG;AAAA,EACH,WAAW,kCAAU,OAAO,YAAY,4CAA4C,EAAE,aAAa,CAAC;AAAA,EACpG,WAAW,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,MAAM,CAAC,EAAE,YAAY,0BAA0B;AAAA,EAC3G,UAAU,kCAAU,OAAO,YAAY,uBAAuB,EAAE,aAAa,EAAE;AAAA,EAC/E,iBAAiB,kCAAU,KAAK,YAAY,gDAAgD,EAAE,aAAa,IAAI;AAAA,EAC/G,aAAa,kCAAU,KAAK,YAAY,4CAA4C,EAAE,aAAa,IAAI;AAAA,EACvG,gBAAgB,kCAAU,KACvB,YAAY,sDAAsD,EAClE,aAAa,MAAM,IAAI;AAAA,EAC1B,cAAc,kCAAU,KAAK,YAAY,wCAAwC,EAAE,aAAa,MAAM,IAAI;AAAA,EAC1G,YAAY,kCAAU,KAAK,YAAY,8CAA8C,EAAE,aAAa,MAAM,IAAI;AAAA,EAC9G,qBAAqB,kCAAU,KAAK,YAAY,mCAAmC,EAAE,aAAa,IAAI;AAAA,EACtG,gBAAgB,kCAAU,QAAQ,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,MAAM,CAAC,CAAC,EACxF,YAAY,qCAAqC,EACjD,aAAa,CAAC,EAAE,CAAC;AAAA,EACpB,YAAY,kCAAU,OAAO,YAAY,8BAA8B,EAAE,aAAa,CAAC;AAAA,EACvF,YAAY,kCAAU,OAAO,YAAY,8BAA8B,EAAE,aAAa,GAAG;AAAA,EACzF,aAAa,kCAAU,OAAO,YAAY,+BAA+B,EAAE,aAAa,CAAC;AAAA,EACzF,kBAAkB,kCAAU,KAAK,YAAY,6CAA6C,EAAE,aAAa,MAAM,IAAI;AAAA,EACnH,aAAa,kCAAU,QAAQ,kCAAU,MAAM,EAAE,YAAY,kCAAkC,EAAE,aAAa,CAAC,CAAC;AAAA,EAChH,kBAAkB,kCAAU,OACzB,YAAY,6DAA6D,EACzE,aAAa,EAAE;AAAA,EAClB,OAAO,kCAAU,IAAI,YAAY,2CAA2C,EAAE,aAAa,MAAM;AAAA,EACjG,oBAAoB,kCAAU,KAAK,YAAY,0CAA0C,EAAE,aAAa,KAAK;AAC/G;AAEO,MAAM,8BAA8B;AAEpC,MAAM,6BAAoF;AAAA,EAC/F,GAAG;AAAA,EACH,GAAG;AAAA,EACH,UAAU,kCAAU,OAAO,YAAY,uBAAuB,EAAE,aAAa,EAAE;AAAA,EAC/E,kBAAkB,kCAAU,KAAK,YAAY,6CAA6C,EAAE,aAAa,MAAM,IAAI;AAAA,EACnH,gBAAgB,kCAAU,QAAQ,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,MAAM,CAAC,CAAC,EACxF,YAAY,qCAAqC,EACjD,aAAa,CAAC,EAAE,CAAC;AAAA,EACpB,YAAY,kCAAU,OAAO,YAAY,8BAA8B,EAAE,aAAa,CAAC;AAAA,EACvF,YAAY,kCAAU,OAAO,YAAY,8BAA8B,EAAE,aAAa,GAAG;AAAA,EACzF,aAAa,kCAAU,OAAO,YAAY,+BAA+B,EAAE,aAAa,CAAC;AAC3F;AAEO,MAAM,mCACX;AAEK,MAAM,4BAAkF;AAAA,EAC7F,GAAG;AAAA,EACH,GAAG;AAAA,EACH,iBAAiB,kCAAU,KAAK,YAAY,gDAAgD,EAAE,aAAa,IAAI;AAAA,EAC/G,gBAAgB,kCAAU,KACvB,YAAY,sDAAsD,EAClE,aAAa,MAAM,IAAI;AAC5B;AAEO,MAAM,kCACX;AAEK,MAAM,4BAAkF;AAAA,EAC7F,GAAG;AAAA,EACH,GAAG;AAAA,EACH,aAAa,kCAAU,KAAK,YAAY,4CAA4C,EAAE,aAAa,IAAI;AAAA,EACvG,YAAY,kCAAU,KAAK,YAAY,8CAA8C,EAAE,aAAa,MAAM,IAAI;AAChH;AAEO,MAAM,kCACX;AAEK,MAAM,uBAAwE;AAAA,EACnF,GAAG;AAAA,EACH,GAAG;AAAA,EACH,WAAW,kCAAU,OAAO,YAAY,4CAA4C,EAAE,aAAa,CAAC;AAAA,EACpG,WAAW,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,MAAM,CAAC,EAAE,YAAY,0BAA0B;AAAA,EAC3G,cAAc,kCAAU,KAAK,YAAY,wCAAwC,EAAE,aAAa,MAAM,IAAI;AAAA,EAC1G,oBAAoB,kCAAU,KAAK,YAAY,0CAA0C,EAAE,aAAa,KAAK;AAAA,EAC7G,aAAa,kCAAU,QAAQ,kCAAU,MAAM,EAAE,YAAY,kCAAkC,EAAE,aAAa,CAAC,CAAC;AAAA,EAChH,kBAAkB,kCAAU,OACzB,YAAY,6DAA6D,EACzE,aAAa,EAAE;AACpB;AAEO,MAAM,6BACX;AAEK,MAAM,iCAAkF;AAAA,EAC7F,GAAG;AAAA,EACH,GAAG;AACL;AAEO,MAAM,uCACX;AAEK,MAAM,kCAAkC;AAAA,EAC7C,GAAG;AAAA,EACH,GAAG;AACL;AAEO,MAAM,wCACX;",
4
+ "sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { globalAttributesPropTypes, PropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema, ValidationMap } from '@elliemae/ds-props-helpers';\nimport type { DSDropdownMenuT } from '@elliemae/ds-dropdownmenu-v2';\n\nexport namespace DSPaginationT {\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[] | readonly 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 interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLElement>, keyof DefaultProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLElement>, keyof DefaultProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\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 ValidationMap<DSPaginationT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,8BAAuE;AA6ChE,MAAM,eAA2C;AAAA,EACtD,WAAW;AAAA,EACX,WAAW;AAAA,EACX,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,UAAU;AAAA,EACV,qBAAqB;AAAA,EACrB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,kBAAkB,MAAM;AAAA,EACxB,gBAAgB,MAAM;AAAA,EACtB,YAAY,MAAM;AAAA,EAClB,cAAc,MAAM;AAAA,EACpB,aAAa,CAAC;AAAA,EACd,kBAAkB;AAAA,EAClB,OAAO;AACT;AAEO,MAAM,wBAAgE;AAAA,EAC3E,GAAG;AAAA,EACH,GAAG;AAAA,EACH,WAAW,kCAAU,OAAO,YAAY,4CAA4C,EAAE,aAAa,CAAC;AAAA,EACpG,WAAW,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,MAAM,CAAC,EAAE,YAAY,0BAA0B;AAAA,EAC3G,UAAU,kCAAU,OAAO,YAAY,uBAAuB,EAAE,aAAa,EAAE;AAAA,EAC/E,iBAAiB,kCAAU,KAAK,YAAY,gDAAgD,EAAE,aAAa,IAAI;AAAA,EAC/G,aAAa,kCAAU,KAAK,YAAY,4CAA4C,EAAE,aAAa,IAAI;AAAA,EACvG,gBAAgB,kCAAU,KACvB,YAAY,sDAAsD,EAClE,aAAa,MAAM,IAAI;AAAA,EAC1B,cAAc,kCAAU,KAAK,YAAY,wCAAwC,EAAE,aAAa,MAAM,IAAI;AAAA,EAC1G,YAAY,kCAAU,KAAK,YAAY,8CAA8C,EAAE,aAAa,MAAM,IAAI;AAAA,EAC9G,qBAAqB,kCAAU,KAAK,YAAY,mCAAmC,EAAE,aAAa,IAAI;AAAA,EACtG,gBAAgB,kCAAU,QAAQ,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,MAAM,CAAC,CAAC,EACxF,YAAY,qCAAqC,EACjD,aAAa,CAAC,EAAE,CAAC;AAAA,EACpB,YAAY,kCAAU,OAAO,YAAY,8BAA8B,EAAE,aAAa,CAAC;AAAA,EACvF,YAAY,kCAAU,OAAO,YAAY,8BAA8B,EAAE,aAAa,GAAG;AAAA,EACzF,aAAa,kCAAU,OAAO,YAAY,+BAA+B,EAAE,aAAa,CAAC;AAAA,EACzF,kBAAkB,kCAAU,KAAK,YAAY,6CAA6C,EAAE,aAAa,MAAM,IAAI;AAAA,EACnH,aAAa,kCAAU,QAAQ,kCAAU,MAAM,EAAE,YAAY,kCAAkC,EAAE,aAAa,CAAC,CAAC;AAAA,EAChH,kBAAkB,kCAAU,OACzB,YAAY,6DAA6D,EACzE,aAAa,EAAE;AAAA,EAClB,OAAO,kCAAU,IAAI,YAAY,2CAA2C,EAAE,aAAa,MAAM;AAAA,EACjG,oBAAoB,kCAAU,KAAK,YAAY,0CAA0C,EAAE,aAAa,KAAK;AAC/G;AAEO,MAAM,8BAA8B;",
6
6
  "names": []
7
7
  }
@@ -1,12 +1,12 @@
1
1
  import * as React from "react";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { describe, useMemoMergePropsWithDefault, useValidateTypescriptPropTypes } from "@elliemae/ds-props-helpers";
3
+ import { describe } from "@elliemae/ds-props-helpers";
4
+ import { usePagination } from "./config/usePagination.js";
5
+ import { DSPaginationName } from "./constants/index.js";
4
6
  import { PaginationContent } from "./parts/PaginationContent.js";
5
- import { DSPaginationName } from "./DSPaginationDefinitions.js";
6
- import { defaultProps, DSPaginationPropTypesSchema } from "./react-desc-prop-types.js";
7
+ import { DSPaginationPropTypesSchema } from "./react-desc-prop-types.js";
7
8
  const DSPagination = (props) => {
8
- const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
9
- useValidateTypescriptPropTypes(propsWithDefault, DSPaginationPropTypesSchema, DSPaginationName);
9
+ const { propsWithDefault } = usePagination(props);
10
10
  return /* @__PURE__ */ jsx(PaginationContent, { ...propsWithDefault });
11
11
  };
12
12
  DSPagination.displayName = DSPaginationName;
@@ -16,4 +16,4 @@ export {
16
16
  DSPagination,
17
17
  DSPaginationWithSchema
18
18
  };
19
- //# sourceMappingURL=Pagination.js.map
19
+ //# sourceMappingURL=DSPagination.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSPagination.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACUd;AATT,SAAS,gBAAgB;AACzB,SAAS,qBAAqB;AAC9B,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAElC,SAAS,mCAAmC;AAE5C,MAAM,eAAyD,CAAC,UAAU;AACxE,QAAM,EAAE,iBAAiB,IAAI,cAAc,KAAK;AAChD,SAAO,oBAAC,qBAAmB,GAAG,kBAAkB;AAClD;AAEA,aAAa,cAAc;AAC3B,MAAM,yBAAyB,SAAS,YAAY,EAAE,YAAY,cAAc;AAChF,uBAAuB,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import { useGetXstyledProps, useMemoMergePropsWithDefault } from "@elliemae/ds-props-helpers";
4
+ import { DSPaginationPropTypes, defaultProps } from "../react-desc-prop-types.js";
5
+ import { useValidateProps } from "./useValidateProps.js";
6
+ const usePagination = (propsFromUser) => {
7
+ const propsWithDefault = useMemoMergePropsWithDefault(propsFromUser, defaultProps);
8
+ useValidateProps(propsWithDefault, DSPaginationPropTypes);
9
+ const xstyledProps = useGetXstyledProps(propsWithDefault);
10
+ return React2.useMemo(
11
+ () => ({
12
+ propsWithDefault,
13
+ xstyledProps
14
+ }),
15
+ [propsWithDefault, xstyledProps]
16
+ );
17
+ };
18
+ export {
19
+ usePagination
20
+ };
21
+ //# sourceMappingURL=usePagination.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/usePagination.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAClB,SAAS,oBAAoB,oCAAoC;AAEjE,SAA6B,uBAAuB,oBAAoB;AACxE,SAAS,wBAAwB;AAE1B,MAAM,gBAAgB,CAAC,kBAAuC;AAInE,QAAM,mBAAmB,6BAA0D,eAAe,YAAY;AAC9G,mBAAiB,kBAAkB,qBAAqB;AAIxD,QAAM,eAAe,mBAAmB,gBAAgB;AAWxD,SAAOA,OAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,kBAAkB,YAAY;AAAA,EACjC;AACF;",
6
+ "names": ["React"]
7
+ }
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import { useValidateTypescriptPropTypes } from "@elliemae/ds-props-helpers";
3
+ import { DSPaginationName } from "../constants/index.js";
4
+ const useValidateProps = (props, propTypes) => {
5
+ useValidateTypescriptPropTypes(props, propTypes, DSPaginationName);
6
+ };
7
+ export {
8
+ useValidateProps
9
+ };
10
+ //# sourceMappingURL=useValidateProps.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useValidateProps.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sCAAsC;AAG/C,SAAS,wBAAwB;AAE1B,MAAM,mBAAmB,CAAC,OAAoC,cAA4C;AAE/G,iCAA+B,OAAO,WAAW,gBAAgB;AACnE;",
6
+ "names": []
7
+ }