@elliemae/ds-pagination 3.57.0-next.4 → 3.57.0-next.40

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 (387) 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/package.json +4 -1
  12. package/dist/cjs/parts/{DSPageNextButton.js → DSPageNextButton/DSPageNextButton.js} +46 -18
  13. package/dist/cjs/parts/DSPageNextButton/DSPageNextButton.js.map +7 -0
  14. package/dist/cjs/parts/DSPageNextButton/config/usePageNextButton.js +55 -0
  15. package/dist/cjs/parts/DSPageNextButton/config/usePageNextButton.js.map +7 -0
  16. package/dist/cjs/parts/DSPageNextButton/config/useValidateProps.js +40 -0
  17. package/dist/cjs/parts/DSPageNextButton/config/useValidateProps.js.map +7 -0
  18. package/dist/cjs/parts/DSPageNextButton/constants/index.js +48 -0
  19. package/dist/cjs/parts/DSPageNextButton/constants/index.js.map +7 -0
  20. package/dist/cjs/parts/DSPageNextButton/index.js +41 -0
  21. package/dist/cjs/parts/DSPageNextButton/index.js.map +7 -0
  22. package/dist/cjs/parts/DSPageNextButton/react-desc-prop-types.js +51 -0
  23. package/dist/cjs/parts/DSPageNextButton/react-desc-prop-types.js.map +7 -0
  24. package/dist/cjs/parts/DSPageNextButton/typescript-testing/slot-props.js +32 -0
  25. package/dist/cjs/parts/DSPageNextButton/typescript-testing/slot-props.js.map +7 -0
  26. package/dist/cjs/{typescript-testing/typescript-page-next-button-valid.js → parts/DSPageNextButton/typescript-testing/typescript-testing.js} +1 -1
  27. package/dist/cjs/parts/DSPageNextButton/typescript-testing/typescript-testing.js.map +7 -0
  28. package/dist/cjs/parts/{DSPagePrevButton.js → DSPagePrevButton/DSPagePrevButton.js} +46 -18
  29. package/dist/cjs/parts/DSPagePrevButton/DSPagePrevButton.js.map +7 -0
  30. package/dist/cjs/parts/DSPagePrevButton/config/usePagePrevButton.js +55 -0
  31. package/dist/cjs/parts/DSPagePrevButton/config/usePagePrevButton.js.map +7 -0
  32. package/dist/cjs/parts/DSPagePrevButton/config/useValidateProps.js +40 -0
  33. package/dist/cjs/parts/DSPagePrevButton/config/useValidateProps.js.map +7 -0
  34. package/dist/cjs/parts/DSPagePrevButton/constants/index.js +48 -0
  35. package/dist/cjs/parts/DSPagePrevButton/constants/index.js.map +7 -0
  36. package/dist/cjs/parts/DSPagePrevButton/index.js +41 -0
  37. package/dist/cjs/parts/DSPagePrevButton/index.js.map +7 -0
  38. package/dist/cjs/parts/DSPagePrevButton/react-desc-prop-types.js +51 -0
  39. package/dist/cjs/parts/DSPagePrevButton/react-desc-prop-types.js.map +7 -0
  40. package/dist/cjs/parts/DSPagePrevButton/typescript-testing/slot-props.js +32 -0
  41. package/dist/cjs/parts/DSPagePrevButton/typescript-testing/slot-props.js.map +7 -0
  42. package/dist/cjs/{typescript-testing/typescript-page-prev-button-valid.js → parts/DSPagePrevButton/typescript-testing/typescript-testing.js} +1 -1
  43. package/dist/cjs/parts/DSPagePrevButton/typescript-testing/typescript-testing.js.map +7 -0
  44. package/dist/cjs/parts/{DSPaginationContainer.js → DSPaginationContainer/DSPaginationContainer.js} +26 -12
  45. package/dist/cjs/parts/DSPaginationContainer/DSPaginationContainer.js.map +7 -0
  46. package/dist/cjs/parts/DSPaginationContainer/config/usePaginationContainer.js +60 -0
  47. package/dist/cjs/parts/DSPaginationContainer/config/usePaginationContainer.js.map +7 -0
  48. package/dist/cjs/parts/DSPaginationContainer/config/useValidateProps.js +40 -0
  49. package/dist/cjs/parts/DSPaginationContainer/config/useValidateProps.js.map +7 -0
  50. package/dist/cjs/parts/DSPaginationContainer/constants/index.js +50 -0
  51. package/dist/cjs/parts/DSPaginationContainer/constants/index.js.map +7 -0
  52. package/dist/cjs/parts/DSPaginationContainer/index.js +41 -0
  53. package/dist/cjs/parts/DSPaginationContainer/index.js.map +7 -0
  54. package/dist/cjs/parts/DSPaginationContainer/react-desc-prop-types.js +48 -0
  55. package/dist/cjs/parts/DSPaginationContainer/react-desc-prop-types.js.map +7 -0
  56. package/dist/cjs/parts/DSPaginationContainer/typescript-testing/slot-props.js +34 -0
  57. package/dist/cjs/parts/DSPaginationContainer/typescript-testing/slot-props.js.map +7 -0
  58. package/dist/cjs/parts/DSPaginationSeparator/DSPaginationSeparator.js +68 -0
  59. package/dist/cjs/parts/DSPaginationSeparator/DSPaginationSeparator.js.map +7 -0
  60. package/dist/cjs/parts/DSPaginationSeparator/config/usePaginationSeparator.js +60 -0
  61. package/dist/cjs/parts/DSPaginationSeparator/config/usePaginationSeparator.js.map +7 -0
  62. package/dist/cjs/parts/DSPaginationSeparator/config/useValidateProps.js +40 -0
  63. package/dist/cjs/parts/DSPaginationSeparator/config/useValidateProps.js.map +7 -0
  64. package/dist/cjs/parts/DSPaginationSeparator/constants/index.js +45 -0
  65. package/dist/cjs/parts/DSPaginationSeparator/constants/index.js.map +7 -0
  66. package/dist/cjs/parts/DSPaginationSeparator/index.js +41 -0
  67. package/dist/cjs/parts/DSPaginationSeparator/index.js.map +7 -0
  68. package/dist/cjs/parts/DSPaginationSeparator/react-desc-prop-types.js +46 -0
  69. package/dist/cjs/parts/DSPaginationSeparator/react-desc-prop-types.js.map +7 -0
  70. package/dist/cjs/parts/DSPaginator/DSPaginator.js +143 -0
  71. package/dist/cjs/parts/DSPaginator/DSPaginator.js.map +7 -0
  72. package/dist/cjs/parts/DSPaginator/{createPaginatorHeader.js → config/createPaginatorHeader.js} +7 -3
  73. package/dist/cjs/parts/DSPaginator/config/createPaginatorHeader.js.map +7 -0
  74. package/dist/cjs/parts/DSPaginator/{getOptions.js.map → config/getOptions.js.map} +1 -1
  75. package/dist/cjs/parts/DSPaginator/{useOnElementOnResize.js.map → config/useOnElementOnResize.js.map} +1 -1
  76. package/dist/cjs/parts/DSPaginator/{usePaginationSearch.js.map → config/usePaginationSearch.js.map} +1 -1
  77. package/dist/cjs/parts/DSPaginator/{usePaginator.js → config/usePaginator.js} +46 -21
  78. package/dist/cjs/parts/DSPaginator/config/usePaginator.js.map +7 -0
  79. package/dist/cjs/parts/DSPaginator/config/useValidateProps.js +40 -0
  80. package/dist/cjs/parts/DSPaginator/config/useValidateProps.js.map +7 -0
  81. package/dist/cjs/parts/DSPaginator/constants/index.js +45 -0
  82. package/dist/cjs/parts/DSPaginator/constants/index.js.map +7 -0
  83. package/dist/cjs/parts/DSPaginator/index.js +7 -112
  84. package/dist/cjs/parts/DSPaginator/index.js.map +3 -3
  85. package/dist/cjs/parts/DSPaginator/react-desc-prop-types.js +59 -0
  86. package/dist/cjs/parts/DSPaginator/react-desc-prop-types.js.map +7 -0
  87. package/dist/cjs/{styled.js → parts/DSPaginator/styled.js} +9 -41
  88. package/dist/cjs/parts/DSPaginator/styled.js.map +7 -0
  89. package/dist/cjs/parts/DSPaginator/typescript-testing/slot-props.js +32 -0
  90. package/dist/cjs/parts/DSPaginator/typescript-testing/slot-props.js.map +7 -0
  91. package/dist/cjs/{typescript-testing/typescript-paginator-valid.js → parts/DSPaginator/typescript-testing/typescript-testing.js} +1 -1
  92. package/dist/cjs/parts/DSPaginator/typescript-testing/typescript-testing.js.map +7 -0
  93. package/dist/cjs/parts/DSPerPageSelector/DSPerPageSelector.js +109 -0
  94. package/dist/cjs/parts/DSPerPageSelector/DSPerPageSelector.js.map +7 -0
  95. package/dist/cjs/parts/DSPerPageSelector/{getOptions.js.map → config/getOptions.js.map} +1 -1
  96. package/dist/cjs/parts/DSPerPageSelector/{usePerPageSelector.js → config/usePerPageSelector.js} +29 -19
  97. package/dist/cjs/parts/DSPerPageSelector/config/usePerPageSelector.js.map +7 -0
  98. package/dist/cjs/parts/DSPerPageSelector/config/useValidateProps.js +40 -0
  99. package/dist/cjs/parts/DSPerPageSelector/config/useValidateProps.js.map +7 -0
  100. package/dist/cjs/parts/DSPerPageSelector/constants/index.js +50 -0
  101. package/dist/cjs/parts/DSPerPageSelector/constants/index.js.map +7 -0
  102. package/dist/cjs/parts/DSPerPageSelector/index.js +7 -70
  103. package/dist/cjs/parts/DSPerPageSelector/index.js.map +3 -3
  104. package/dist/cjs/parts/DSPerPageSelector/react-desc-prop-types.js +58 -0
  105. package/dist/cjs/parts/DSPerPageSelector/react-desc-prop-types.js.map +7 -0
  106. package/dist/cjs/parts/DSPerPageSelector/styled.js +90 -0
  107. package/dist/cjs/parts/DSPerPageSelector/styled.js.map +7 -0
  108. package/dist/cjs/parts/DSPerPageSelector/typescript-testing/slots-props.js +32 -0
  109. package/dist/cjs/parts/DSPerPageSelector/typescript-testing/slots-props.js.map +7 -0
  110. package/dist/cjs/{typescript-testing/typescript-per-page-selector-valid.js → parts/DSPerPageSelector/typescript-testing/typescript-testing.js} +1 -1
  111. package/dist/cjs/parts/DSPerPageSelector/typescript-testing/typescript-testing.js.map +7 -0
  112. package/dist/cjs/parts/PaginationContent.js +7 -9
  113. package/dist/cjs/parts/PaginationContent.js.map +2 -2
  114. package/dist/cjs/parts/index.js +25 -4
  115. package/dist/cjs/parts/index.js.map +2 -2
  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/package.json +4 -1
  129. package/dist/esm/parts/DSPageNextButton/DSPageNextButton.js +74 -0
  130. package/dist/esm/parts/DSPageNextButton/DSPageNextButton.js.map +7 -0
  131. package/dist/esm/parts/DSPageNextButton/config/usePageNextButton.js +30 -0
  132. package/dist/esm/parts/DSPageNextButton/config/usePageNextButton.js.map +7 -0
  133. package/dist/esm/parts/DSPageNextButton/config/useValidateProps.js +10 -0
  134. package/dist/esm/parts/DSPageNextButton/config/useValidateProps.js.map +7 -0
  135. package/dist/esm/parts/DSPageNextButton/constants/index.js +18 -0
  136. package/dist/esm/parts/DSPageNextButton/constants/index.js.map +7 -0
  137. package/dist/esm/parts/DSPageNextButton/index.js +11 -0
  138. package/dist/esm/parts/DSPageNextButton/index.js.map +7 -0
  139. package/dist/esm/parts/DSPageNextButton/react-desc-prop-types.js +26 -0
  140. package/dist/esm/parts/DSPageNextButton/react-desc-prop-types.js.map +7 -0
  141. package/dist/esm/parts/DSPageNextButton/typescript-testing/slot-props.js +9 -0
  142. package/dist/esm/parts/DSPageNextButton/typescript-testing/slot-props.js.map +7 -0
  143. package/dist/esm/{typescript-testing/typescript-page-next-button-valid.js → parts/DSPageNextButton/typescript-testing/typescript-testing.js} +1 -1
  144. package/dist/esm/parts/DSPageNextButton/typescript-testing/typescript-testing.js.map +7 -0
  145. package/dist/esm/parts/DSPagePrevButton/DSPagePrevButton.js +74 -0
  146. package/dist/esm/parts/DSPagePrevButton/DSPagePrevButton.js.map +7 -0
  147. package/dist/esm/parts/DSPagePrevButton/config/usePagePrevButton.js +30 -0
  148. package/dist/esm/parts/DSPagePrevButton/config/usePagePrevButton.js.map +7 -0
  149. package/dist/esm/parts/DSPagePrevButton/config/useValidateProps.js +10 -0
  150. package/dist/esm/parts/DSPagePrevButton/config/useValidateProps.js.map +7 -0
  151. package/dist/esm/parts/DSPagePrevButton/constants/index.js +18 -0
  152. package/dist/esm/parts/DSPagePrevButton/constants/index.js.map +7 -0
  153. package/dist/esm/parts/DSPagePrevButton/index.js +11 -0
  154. package/dist/esm/parts/DSPagePrevButton/index.js.map +7 -0
  155. package/dist/esm/parts/DSPagePrevButton/react-desc-prop-types.js +26 -0
  156. package/dist/esm/parts/DSPagePrevButton/react-desc-prop-types.js.map +7 -0
  157. package/dist/esm/parts/DSPagePrevButton/typescript-testing/slot-props.js +9 -0
  158. package/dist/esm/parts/DSPagePrevButton/typescript-testing/slot-props.js.map +7 -0
  159. package/dist/esm/{typescript-testing/typescript-page-prev-button-valid.js → parts/DSPagePrevButton/typescript-testing/typescript-testing.js} +1 -1
  160. package/dist/esm/parts/DSPagePrevButton/typescript-testing/typescript-testing.js.map +7 -0
  161. package/dist/esm/parts/DSPaginationContainer/DSPaginationContainer.js +50 -0
  162. package/dist/esm/parts/DSPaginationContainer/DSPaginationContainer.js.map +7 -0
  163. package/dist/esm/parts/DSPaginationContainer/config/usePaginationContainer.js +38 -0
  164. package/dist/esm/parts/DSPaginationContainer/config/usePaginationContainer.js.map +7 -0
  165. package/dist/esm/parts/DSPaginationContainer/config/useValidateProps.js +10 -0
  166. package/dist/esm/parts/DSPaginationContainer/config/useValidateProps.js.map +7 -0
  167. package/dist/esm/parts/DSPaginationContainer/constants/index.js +20 -0
  168. package/dist/esm/parts/DSPaginationContainer/constants/index.js.map +7 -0
  169. package/dist/esm/parts/DSPaginationContainer/index.js +15 -0
  170. package/dist/esm/parts/DSPaginationContainer/index.js.map +7 -0
  171. package/dist/esm/parts/DSPaginationContainer/react-desc-prop-types.js +18 -0
  172. package/dist/esm/parts/DSPaginationContainer/react-desc-prop-types.js.map +7 -0
  173. package/dist/esm/parts/DSPaginationContainer/typescript-testing/slot-props.js +11 -0
  174. package/dist/esm/parts/DSPaginationContainer/typescript-testing/slot-props.js.map +7 -0
  175. package/dist/esm/parts/DSPaginationSeparator/DSPaginationSeparator.js +43 -0
  176. package/dist/esm/parts/DSPaginationSeparator/DSPaginationSeparator.js.map +7 -0
  177. package/dist/esm/parts/DSPaginationSeparator/config/usePaginationSeparator.js +38 -0
  178. package/dist/esm/parts/DSPaginationSeparator/config/usePaginationSeparator.js.map +7 -0
  179. package/dist/esm/parts/DSPaginationSeparator/config/useValidateProps.js +10 -0
  180. package/dist/esm/parts/DSPaginationSeparator/config/useValidateProps.js.map +7 -0
  181. package/dist/esm/parts/DSPaginationSeparator/constants/index.js +15 -0
  182. package/dist/esm/parts/DSPaginationSeparator/constants/index.js.map +7 -0
  183. package/dist/esm/parts/DSPaginationSeparator/index.js +15 -0
  184. package/dist/esm/parts/DSPaginationSeparator/index.js.map +7 -0
  185. package/dist/esm/parts/DSPaginationSeparator/react-desc-prop-types.js +16 -0
  186. package/dist/esm/parts/DSPaginationSeparator/react-desc-prop-types.js.map +7 -0
  187. package/dist/esm/parts/DSPaginator/DSPaginator.js +113 -0
  188. package/dist/esm/parts/DSPaginator/DSPaginator.js.map +7 -0
  189. package/dist/esm/parts/DSPaginator/{createPaginatorHeader.js → config/createPaginatorHeader.js} +7 -3
  190. package/dist/esm/parts/DSPaginator/config/createPaginatorHeader.js.map +7 -0
  191. package/dist/esm/parts/DSPaginator/{getOptions.js.map → config/getOptions.js.map} +1 -1
  192. package/dist/esm/parts/DSPaginator/{useOnElementOnResize.js.map → config/useOnElementOnResize.js.map} +1 -1
  193. package/dist/esm/parts/DSPaginator/{usePaginationSearch.js.map → config/usePaginationSearch.js.map} +1 -1
  194. package/dist/esm/parts/DSPaginator/{usePaginator.js → config/usePaginator.js} +52 -22
  195. package/dist/esm/parts/DSPaginator/config/usePaginator.js.map +7 -0
  196. package/dist/esm/parts/DSPaginator/config/useValidateProps.js +10 -0
  197. package/dist/esm/parts/DSPaginator/config/useValidateProps.js.map +7 -0
  198. package/dist/esm/parts/DSPaginator/constants/index.js +15 -0
  199. package/dist/esm/parts/DSPaginator/constants/index.js.map +7 -0
  200. package/dist/esm/parts/DSPaginator/index.js +6 -111
  201. package/dist/esm/parts/DSPaginator/index.js.map +3 -3
  202. package/dist/esm/parts/DSPaginator/react-desc-prop-types.js +34 -0
  203. package/dist/esm/parts/DSPaginator/react-desc-prop-types.js.map +7 -0
  204. package/dist/esm/parts/DSPaginator/styled.js +60 -0
  205. package/dist/esm/parts/DSPaginator/styled.js.map +7 -0
  206. package/dist/esm/parts/DSPaginator/typescript-testing/slot-props.js +9 -0
  207. package/dist/esm/parts/DSPaginator/typescript-testing/slot-props.js.map +7 -0
  208. package/dist/esm/{typescript-testing/typescript-paginator-valid.js → parts/DSPaginator/typescript-testing/typescript-testing.js} +1 -1
  209. package/dist/esm/parts/DSPaginator/typescript-testing/typescript-testing.js.map +7 -0
  210. package/dist/esm/parts/DSPerPageSelector/DSPerPageSelector.js +79 -0
  211. package/dist/esm/parts/DSPerPageSelector/DSPerPageSelector.js.map +7 -0
  212. package/dist/esm/parts/DSPerPageSelector/{getOptions.js.map → config/getOptions.js.map} +1 -1
  213. package/dist/esm/parts/DSPerPageSelector/config/usePerPageSelector.js +55 -0
  214. package/dist/esm/parts/DSPerPageSelector/config/usePerPageSelector.js.map +7 -0
  215. package/dist/esm/parts/DSPerPageSelector/config/useValidateProps.js +10 -0
  216. package/dist/esm/parts/DSPerPageSelector/config/useValidateProps.js.map +7 -0
  217. package/dist/esm/parts/DSPerPageSelector/constants/index.js +20 -0
  218. package/dist/esm/parts/DSPerPageSelector/constants/index.js.map +7 -0
  219. package/dist/esm/parts/DSPerPageSelector/index.js +6 -69
  220. package/dist/esm/parts/DSPerPageSelector/index.js.map +3 -3
  221. package/dist/esm/parts/DSPerPageSelector/react-desc-prop-types.js +33 -0
  222. package/dist/esm/parts/DSPerPageSelector/react-desc-prop-types.js.map +7 -0
  223. package/dist/esm/parts/DSPerPageSelector/styled.js +60 -0
  224. package/dist/esm/parts/DSPerPageSelector/styled.js.map +7 -0
  225. package/dist/esm/parts/DSPerPageSelector/typescript-testing/slots-props.js +9 -0
  226. package/dist/esm/parts/DSPerPageSelector/typescript-testing/slots-props.js.map +7 -0
  227. package/dist/esm/{typescript-testing/typescript-per-page-selector-valid.js → parts/DSPerPageSelector/typescript-testing/typescript-testing.js} +1 -1
  228. package/dist/esm/parts/DSPerPageSelector/typescript-testing/typescript-testing.js.map +7 -0
  229. package/dist/esm/parts/PaginationContent.js +7 -9
  230. package/dist/esm/parts/PaginationContent.js.map +2 -2
  231. package/dist/esm/parts/index.js +63 -6
  232. package/dist/esm/parts/index.js.map +2 -2
  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/{createPaginatorHeader.d.ts → config/createPaginatorHeader.d.ts} +2 -1
  288. package/dist/types/parts/DSPaginator/config/usePaginator.d.ts +386 -0
  289. package/dist/types/parts/DSPaginator/config/useValidateProps.d.ts +3 -0
  290. package/dist/types/parts/DSPaginator/constants/index.d.ts +9 -0
  291. package/dist/types/parts/DSPaginator/index.d.ts +3 -4
  292. package/dist/types/parts/DSPaginator/react-desc-prop-types.d.ts +27 -0
  293. package/dist/types/parts/DSPaginator/styled.d.ts +2 -0
  294. package/dist/types/parts/DSPaginator/tests/DSPaginator.a11y.test.d.ts +1 -0
  295. package/dist/types/parts/DSPaginator/tests/DSPaginator.data-testid.test.d.ts +1 -0
  296. package/dist/types/parts/DSPaginator/tests/DSPaginator.exports.test.d.ts +1 -0
  297. package/dist/types/parts/DSPaginator/tests/DSPaginator.get-owner-props.test.d.ts +1 -0
  298. package/dist/types/parts/DSPaginator/tests/DSPaginator.keyboard.test.d.ts +1 -0
  299. package/dist/types/parts/DSPaginator/tests/utils/DSPaginatorTestRender.d.ts +1 -0
  300. package/dist/types/parts/DSPaginator/typescript-testing/slot-props.d.ts +1 -0
  301. package/dist/types/parts/DSPaginator/typescript-testing/typescript-testing.d.ts +1 -0
  302. package/dist/types/parts/DSPerPageSelector/DSPerPageSelector.d.ts +5 -0
  303. package/dist/types/parts/DSPerPageSelector/config/usePerPageSelector.d.ts +383 -0
  304. package/dist/types/parts/DSPerPageSelector/config/useValidateProps.d.ts +3 -0
  305. package/dist/types/parts/DSPerPageSelector/constants/index.d.ts +13 -0
  306. package/dist/types/parts/DSPerPageSelector/index.d.ts +3 -4
  307. package/dist/types/parts/DSPerPageSelector/react-desc-prop-types.d.ts +28 -0
  308. package/dist/types/parts/DSPerPageSelector/styled.d.ts +2 -0
  309. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.a11y.test.d.ts +1 -0
  310. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.data-testid.test.d.ts +1 -0
  311. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.exports.test.d.ts +1 -0
  312. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.get-owner-props.test.d.ts +1 -0
  313. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.keyboard.test.d.ts +1 -0
  314. package/dist/types/parts/DSPerPageSelector/tests/utils/PerPageSelectorTestRender.d.ts +1 -0
  315. package/dist/types/parts/DSPerPageSelector/typescript-testing/slots-props.d.ts +1 -0
  316. package/dist/types/parts/DSPerPageSelector/typescript-testing/typescript-testing.d.ts +1 -0
  317. package/dist/types/parts/index.d.ts +6 -5
  318. package/dist/types/react-desc-prop-types.d.ts +9 -540
  319. package/dist/types/tests/DSPagination.data-testid.test.d.ts +1 -0
  320. package/dist/types/tests/DSPagination.exports.test.d.ts +1 -0
  321. package/dist/types/tests/DSPagination.get-owner-props.test.d.ts +1 -0
  322. package/package.json +35 -31
  323. package/dist/cjs/DSPaginationDefinitions.js.map +0 -7
  324. package/dist/cjs/Pagination.js.map +0 -7
  325. package/dist/cjs/PaginationDataTestID.js.map +0 -7
  326. package/dist/cjs/parts/DSPageNextButton.js.map +0 -7
  327. package/dist/cjs/parts/DSPagePrevButton.js.map +0 -7
  328. package/dist/cjs/parts/DSPaginationContainer.js.map +0 -7
  329. package/dist/cjs/parts/DSPaginator/createPaginatorHeader.js.map +0 -7
  330. package/dist/cjs/parts/DSPaginator/usePaginator.js.map +0 -7
  331. package/dist/cjs/parts/DSPerPageSelector/usePerPageSelector.js.map +0 -7
  332. package/dist/cjs/props.js +0 -85
  333. package/dist/cjs/props.js.map +0 -7
  334. package/dist/cjs/styled.js.map +0 -7
  335. package/dist/cjs/typescript-testing/typescript-page-next-button-valid.js.map +0 -7
  336. package/dist/cjs/typescript-testing/typescript-page-prev-button-valid.js.map +0 -7
  337. package/dist/cjs/typescript-testing/typescript-paginator-valid.js.map +0 -7
  338. package/dist/cjs/typescript-testing/typescript-per-page-selector-valid.js.map +0 -7
  339. package/dist/esm/DSPaginationDefinitions.js +0 -24
  340. package/dist/esm/DSPaginationDefinitions.js.map +0 -7
  341. package/dist/esm/Pagination.js.map +0 -7
  342. package/dist/esm/PaginationDataTestID.js +0 -14
  343. package/dist/esm/PaginationDataTestID.js.map +0 -7
  344. package/dist/esm/parts/DSPageNextButton.js +0 -47
  345. package/dist/esm/parts/DSPageNextButton.js.map +0 -7
  346. package/dist/esm/parts/DSPagePrevButton.js +0 -47
  347. package/dist/esm/parts/DSPagePrevButton.js.map +0 -7
  348. package/dist/esm/parts/DSPaginationContainer.js +0 -31
  349. package/dist/esm/parts/DSPaginationContainer.js.map +0 -7
  350. package/dist/esm/parts/DSPaginator/createPaginatorHeader.js.map +0 -7
  351. package/dist/esm/parts/DSPaginator/usePaginator.js.map +0 -7
  352. package/dist/esm/parts/DSPerPageSelector/usePerPageSelector.js +0 -40
  353. package/dist/esm/parts/DSPerPageSelector/usePerPageSelector.js.map +0 -7
  354. package/dist/esm/props.js +0 -55
  355. package/dist/esm/props.js.map +0 -7
  356. package/dist/esm/styled.js +0 -92
  357. package/dist/esm/styled.js.map +0 -7
  358. package/dist/esm/typescript-testing/typescript-page-next-button-valid.js.map +0 -7
  359. package/dist/esm/typescript-testing/typescript-page-prev-button-valid.js.map +0 -7
  360. package/dist/esm/typescript-testing/typescript-paginator-valid.js.map +0 -7
  361. package/dist/esm/typescript-testing/typescript-per-page-selector-valid.js.map +0 -7
  362. package/dist/types/DSPaginationDefinitions.d.ts +0 -12
  363. package/dist/types/PaginationDataTestID.d.ts +0 -9
  364. package/dist/types/parts/DSPageNextButton.d.ts +0 -4
  365. package/dist/types/parts/DSPagePrevButton.d.ts +0 -4
  366. package/dist/types/parts/DSPaginationContainer.d.ts +0 -4
  367. package/dist/types/parts/DSPaginator/usePaginator.d.ts +0 -381
  368. package/dist/types/parts/DSPerPageSelector/usePerPageSelector.d.ts +0 -377
  369. package/dist/types/props.d.ts +0 -20
  370. package/dist/types/styled.d.ts +0 -7
  371. /package/dist/cjs/parts/DSPaginator/{getOptions.js → config/getOptions.js} +0 -0
  372. /package/dist/cjs/parts/DSPaginator/{useOnElementOnResize.js → config/useOnElementOnResize.js} +0 -0
  373. /package/dist/cjs/parts/DSPaginator/{usePaginationSearch.js → config/usePaginationSearch.js} +0 -0
  374. /package/dist/cjs/parts/DSPerPageSelector/{getOptions.js → config/getOptions.js} +0 -0
  375. /package/dist/esm/parts/DSPaginator/{getOptions.js → config/getOptions.js} +0 -0
  376. /package/dist/esm/parts/DSPaginator/{useOnElementOnResize.js → config/useOnElementOnResize.js} +0 -0
  377. /package/dist/esm/parts/DSPaginator/{usePaginationSearch.js → config/usePaginationSearch.js} +0 -0
  378. /package/dist/esm/parts/DSPerPageSelector/{getOptions.js → config/getOptions.js} +0 -0
  379. /package/dist/types/{Pagination.d.ts → DSPagination.d.ts} +0 -0
  380. /package/dist/types/{typescript-testing/typescript-page-next-button-valid.d.ts → parts/DSPageNextButton/tests/DSPageNextButton.a11y.test.d.ts} +0 -0
  381. /package/dist/types/{typescript-testing/typescript-page-prev-button-valid.d.ts → parts/DSPageNextButton/tests/DSPageNextButton.callbacks.test.d.ts} +0 -0
  382. /package/dist/types/{typescript-testing/typescript-paginator-valid.d.ts → parts/DSPageNextButton/tests/DSPageNextButton.data-testid.test.d.ts} +0 -0
  383. /package/dist/types/{typescript-testing/typescript-per-page-selector-valid.d.ts → parts/DSPageNextButton/tests/DSPageNextButton.export.test.d.ts} +0 -0
  384. /package/dist/types/parts/DSPaginator/{getOptions.d.ts → config/getOptions.d.ts} +0 -0
  385. /package/dist/types/parts/DSPaginator/{useOnElementOnResize.d.ts → config/useOnElementOnResize.d.ts} +0 -0
  386. /package/dist/types/parts/DSPaginator/{usePaginationSearch.d.ts → config/usePaginationSearch.d.ts} +0 -0
  387. /package/dist/types/parts/DSPerPageSelector/{getOptions.d.ts → config/getOptions.d.ts} +0 -0
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var useValidateProps_exports = {};
30
+ __export(useValidateProps_exports, {
31
+ useValidateProps: () => useValidateProps
32
+ });
33
+ module.exports = __toCommonJS(useValidateProps_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
+ var import_constants = require("../constants/index.js");
37
+ const useValidateProps = (props, propTypes) => {
38
+ (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(props, propTypes, import_constants.DSPaginationSeparatorName);
39
+ };
40
+ //# sourceMappingURL=useValidateProps.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/parts/DSPaginationSeparator/config/useValidateProps.ts", "../../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport type { ValidationMap } from '@elliemae/ds-props-helpers';\nimport { type DSPaginationSeparatorT } from '../react-desc-prop-types.js';\nimport { DSPaginationSeparatorName } from '../constants/index.js';\n\nexport const useValidateProps = (\n props: DSPaginationSeparatorT.InternalProps,\n propTypes: ValidationMap<DSPaginationSeparatorT.Props>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSPaginationSeparatorName);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA+C;AAG/C,uBAA0C;AAEnC,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,8DAA+B,OAAO,WAAW,0CAAyB;AAC5E;",
6
+ "names": []
7
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var constants_exports = {};
30
+ __export(constants_exports, {
31
+ DSPaginationName: () => import_constants.DSPaginationName,
32
+ DSPaginationSeparatorName: () => DSPaginationSeparatorName,
33
+ PAGINATION_SEPARATOR_DATA_TESTID: () => PAGINATION_SEPARATOR_DATA_TESTID,
34
+ PAGINATION_SEPARATOR_SLOTS: () => PAGINATION_SEPARATOR_SLOTS
35
+ });
36
+ module.exports = __toCommonJS(constants_exports);
37
+ var React = __toESM(require("react"));
38
+ var import_ds_system = require("@elliemae/ds-system");
39
+ var import_constants = require("../../../constants/index.js");
40
+ const DSPaginationSeparatorName = "DSPaginationSeparator";
41
+ const PAGINATION_SEPARATOR_SLOTS = {
42
+ SEPARATOR: "separator"
43
+ };
44
+ const PAGINATION_SEPARATOR_DATA_TESTID = (0, import_ds_system.slotObjectToDataTestIds)(import_constants.DSPaginationName, PAGINATION_SEPARATOR_SLOTS);
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/parts/DSPaginationSeparator/constants/index.ts", "../../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\nimport { DSPaginationName } from '../../../constants/index.js';\nexport { DSPaginationName };\n\nexport const DSPaginationSeparatorName = 'DSPaginationSeparator';\n\n// we are naming this with the ${component_name}_slots convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const PAGINATION_SEPARATOR_SLOTS = {\n SEPARATOR: 'separator',\n} as const;\n\n// we are naming this with the ${component_name}_data_testid convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const PAGINATION_SEPARATOR_DATA_TESTID = slotObjectToDataTestIds(DSPaginationName, PAGINATION_SEPARATOR_SLOTS);\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AACxC,uBAAiC;AAG1B,MAAM,4BAA4B;AAGlC,MAAM,6BAA6B;AAAA,EACxC,WAAW;AACb;AAGO,MAAM,uCAAmC,0CAAwB,mCAAkB,0BAA0B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var DSPaginationSeparator_exports = {};
30
+ __export(DSPaginationSeparator_exports, {
31
+ DSPaginationSeparator: () => import_DSPaginationSeparator.DSPaginationSeparator,
32
+ DSPaginationSeparatorName: () => import_constants.DSPaginationSeparatorName,
33
+ DSPaginationSeparatorWithSchema: () => import_DSPaginationSeparator.DSPaginationSeparatorWithSchema,
34
+ PAGINATION_SEPARATOR_DATA_TESTID: () => import_constants.PAGINATION_SEPARATOR_DATA_TESTID,
35
+ PAGINATION_SEPARATOR_SLOTS: () => import_constants.PAGINATION_SEPARATOR_SLOTS
36
+ });
37
+ module.exports = __toCommonJS(DSPaginationSeparator_exports);
38
+ var React = __toESM(require("react"));
39
+ var import_DSPaginationSeparator = require("./DSPaginationSeparator.js");
40
+ var import_constants = require("./constants/index.js");
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/parts/DSPaginationSeparator/index.ts", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export { DSPaginationSeparator, DSPaginationSeparatorWithSchema } from './DSPaginationSeparator.js';\nexport {\n DSPaginationSeparatorName,\n PAGINATION_SEPARATOR_DATA_TESTID,\n PAGINATION_SEPARATOR_SLOTS,\n} from './constants/index.js';\nexport type { DSPaginationSeparatorT } from './react-desc-prop-types.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mCAAuE;AACvE,uBAIO;",
6
+ "names": []
7
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var react_desc_prop_types_exports = {};
30
+ __export(react_desc_prop_types_exports, {
31
+ DSPaginationSeparatorPropTypes: () => DSPaginationSeparatorPropTypes,
32
+ DSPaginationSeparatorPropTypesSchema: () => DSPaginationSeparatorPropTypesSchema,
33
+ defaultProps: () => defaultProps
34
+ });
35
+ module.exports = __toCommonJS(react_desc_prop_types_exports);
36
+ var React = __toESM(require("react"));
37
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
38
+ var import_constants = require("./constants/index.js");
39
+ const defaultProps = {};
40
+ const DSPaginationSeparatorPropTypes = {
41
+ ...(0, import_ds_props_helpers.getPropsPerSlotPropTypes)(import_constants.DSPaginationName, import_constants.PAGINATION_SEPARATOR_SLOTS),
42
+ ...import_ds_props_helpers.globalAttributesPropTypes,
43
+ ...import_ds_props_helpers.xstyledPropTypes
44
+ };
45
+ const DSPaginationSeparatorPropTypesSchema = DSPaginationSeparatorPropTypes;
46
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/parts/DSPaginationSeparator/react-desc-prop-types.ts", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema, ValidationMap } from '@elliemae/ds-props-helpers';\nimport { getPropsPerSlotPropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { DSPaginationName, PAGINATION_SEPARATOR_SLOTS } from './constants/index.js';\n\nexport declare namespace DSPaginationSeparatorT {\n export interface RequiredProps {}\n\n export interface DefaultProps {}\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSPaginationName, typeof PAGINATION_SEPARATOR_SLOTS> {}\n export interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLElement>, keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLElement>, keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultProps: DSPaginationSeparatorT.DefaultProps = {};\n\nexport const DSPaginationSeparatorPropTypes: DSPropTypesSchema<DSPaginationSeparatorT.Props> = {\n ...getPropsPerSlotPropTypes(DSPaginationName, PAGINATION_SEPARATOR_SLOTS),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n};\n\nexport const DSPaginationSeparatorPropTypesSchema =\n DSPaginationSeparatorPropTypes as unknown as ValidationMap<DSPaginationSeparatorT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAAsF;AAEtF,uBAA6D;AAwBtD,MAAM,eAAoD,CAAC;AAE3D,MAAM,iCAAkF;AAAA,EAC7F,OAAG,kDAAyB,mCAAkB,2CAA0B;AAAA,EACxE,GAAG;AAAA,EACH,GAAG;AACL;AAEO,MAAM,uCACX;",
6
+ "names": []
7
+ }
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var DSPaginator_exports = {};
30
+ __export(DSPaginator_exports, {
31
+ DSPaginator: () => DSPaginator,
32
+ DSPaginatorWithSchema: () => DSPaginatorWithSchema
33
+ });
34
+ module.exports = __toCommonJS(DSPaginator_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ var import_react = require("react");
38
+ var import_ds_circular_progress_indicator = require("@elliemae/ds-circular-progress-indicator");
39
+ var import_ds_dropdownmenu_v2 = require("@elliemae/ds-dropdownmenu-v2");
40
+ var import_ds_grid = require("@elliemae/ds-grid");
41
+ var import_ds_icons = require("@elliemae/ds-icons");
42
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
43
+ var import_ds_typography = require("@elliemae/ds-typography");
44
+ var import_DSPaginationSeparator = require("../DSPaginationSeparator/index.js");
45
+ var import_createPaginatorHeader = require("./config/createPaginatorHeader.js");
46
+ var import_usePaginator = require("./config/usePaginator.js");
47
+ var import_constants = require("./constants/index.js");
48
+ var import_react_desc_prop_types = require("./react-desc-prop-types.js");
49
+ var import_styled = require("./styled.js");
50
+ const DSPaginator = (props) => {
51
+ const {
52
+ propsWithDefault: { pageIndex, pageCount, isLoadingPageCount, onPageChange, pageDetails, pageDetailsTitle },
53
+ xstyledProps,
54
+ globalAttributes,
55
+ ownerPropsConfig,
56
+ btnRef,
57
+ btnWidth,
58
+ pageInfoWidth,
59
+ options,
60
+ isOpened,
61
+ setIsOpened,
62
+ detailWidth,
63
+ actionRef,
64
+ onKeyDown
65
+ } = (0, import_usePaginator.usePaginator)(props);
66
+ const Header = (0, import_react.useMemo)(
67
+ () => (0, import_createPaginatorHeader.createPaginatorHeader)({ pageDetailsTitle, pageInfoWidth, ownerPropsConfig }),
68
+ [pageDetailsTitle, pageInfoWidth, ownerPropsConfig]
69
+ );
70
+ const buttonOnClick = (0, import_react.useMemo)(() => {
71
+ if (globalAttributes.onClick) return globalAttributes.onClick;
72
+ return () => setIsOpened((prev) => !prev);
73
+ }, [globalAttributes.onClick, setIsOpened]);
74
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
75
+ import_ds_dropdownmenu_v2.DSDropdownMenuV2,
76
+ {
77
+ isOpened,
78
+ options,
79
+ selectedOptions: { [pageIndex.toString()]: true },
80
+ onOptionClick: (_, clickedOption) => {
81
+ onPageChange(clickedOption.value);
82
+ setIsOpened(false);
83
+ btnRef.current?.focus();
84
+ },
85
+ onClickOutside: () => {
86
+ setIsOpened(false);
87
+ btnRef.current?.focus();
88
+ },
89
+ customOffset: [-23, 2],
90
+ startPlacementPreference: "top-start",
91
+ actionRef,
92
+ onKeyDown,
93
+ minWidth: pageDetails.length !== 0 ? btnWidth + 23 : pageCount.toString().length * 6 + 90,
94
+ maxHeight: 300,
95
+ HeaderComp: Header,
96
+ children: [
97
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
98
+ import_styled.PaginationDropdownButtonPaginator,
99
+ {
100
+ buttonType: "raw",
101
+ disabled: isLoadingPageCount,
102
+ innerRef: btnRef,
103
+ "aria-pressed": isOpened,
104
+ "aria-label": `Page ${pageIndex} out of ${pageCount}, ${pageDetails.length !== 0 ? pageDetails[pageIndex - 1] : "\b\b"}. Press to change the current page`,
105
+ "data-testid": import_constants.PAGINATOR_DATA_TESTID.PAGINATOR,
106
+ ...globalAttributes,
107
+ ...xstyledProps,
108
+ ...ownerPropsConfig,
109
+ onClick: buttonOnClick,
110
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { gutter: "xxxs", alignItems: "center", style: { gridAutoFlow: "column" }, children: [
111
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_typography.DSTypography, { fontSize: "18px", variant: "b1", as: "span", fontWeight: "semibold", textAlign: "start", children: pageIndex }),
112
+ "/ ",
113
+ pageCount,
114
+ isLoadingPageCount && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_circular_progress_indicator.DSCircularIndeterminateIndicator, { ml: "xxxs", mr: "xxxs", size: "xs" }),
115
+ pageDetails.length !== 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
116
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DSPaginationSeparator.DSPaginationSeparator, { height: "12px", ml: "12px", mr: "xxxs", ...ownerPropsConfig }),
117
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
118
+ import_ds_typography.DSTypography,
119
+ {
120
+ fontSize: "13px",
121
+ w: detailWidth,
122
+ mr: "xxs",
123
+ variant: "b1",
124
+ as: "span",
125
+ fontWeight: "semibold",
126
+ textAlign: "start",
127
+ children: pageDetails[pageIndex - 1]
128
+ }
129
+ )
130
+ ] }),
131
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ChevronDown, { ml: "xxxs", color: ["brand-primary", "700"] })
132
+ ] })
133
+ }
134
+ ),
135
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, { style: { position: "relative" }, children: pageDetails.map((pageDetail) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.InvisibleDiv, { "data-testid": "ds-pagination-invisible-detail-for-width-calc", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_typography.DSTypography, { fontSize: "13px", mr: "xxs", variant: "b1", as: "span", fontWeight: "semibold", textAlign: "start", children: pageDetail }) }, pageDetail)) })
136
+ ]
137
+ }
138
+ );
139
+ };
140
+ DSPaginator.displayName = import_constants.DSPaginatorName;
141
+ const DSPaginatorWithSchema = (0, import_ds_props_helpers.describe)(DSPaginator);
142
+ DSPaginatorWithSchema.propTypes = import_react_desc_prop_types.DSPaginatorPropTypesSchema;
143
+ //# sourceMappingURL=DSPaginator.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/parts/DSPaginator/DSPaginator.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React, { useMemo } from 'react';\nimport type { DSButtonT } from '@elliemae/ds-button-v2';\nimport { DSCircularIndeterminateIndicator } from '@elliemae/ds-circular-progress-indicator';\nimport { DSDropdownMenuV2, type DSDropdownMenuT } from '@elliemae/ds-dropdownmenu-v2';\nimport { Grid } from '@elliemae/ds-grid';\nimport { ChevronDown } from '@elliemae/ds-icons';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { DSTypography } from '@elliemae/ds-typography';\nimport { DSPaginationSeparator } from '../DSPaginationSeparator/index.js';\nimport { createPaginatorHeader } from './config/createPaginatorHeader.js';\nimport { usePaginator } from './config/usePaginator.js';\nimport { DSPaginatorName, PAGINATOR_DATA_TESTID } from './constants/index.js';\nimport { DSPaginatorPropTypesSchema, type DSPaginatorT } from './react-desc-prop-types.js';\nimport { PaginationDropdownButtonPaginator, InvisibleDiv } from './styled.js';\n\nconst DSPaginator: React.ComponentType<DSPaginatorT.Props> = (props) => {\n const {\n propsWithDefault: { pageIndex, pageCount, isLoadingPageCount, onPageChange, pageDetails, pageDetailsTitle },\n xstyledProps,\n globalAttributes,\n ownerPropsConfig,\n btnRef,\n btnWidth,\n pageInfoWidth,\n options,\n isOpened,\n setIsOpened,\n detailWidth,\n actionRef,\n onKeyDown,\n } = usePaginator(props);\n\n const Header = useMemo(\n () => createPaginatorHeader({ pageDetailsTitle, pageInfoWidth, ownerPropsConfig }),\n [pageDetailsTitle, pageInfoWidth, ownerPropsConfig],\n );\n\n const buttonOnClick: DSButtonT.Props['onClick'] = useMemo(() => {\n if (globalAttributes.onClick) return globalAttributes.onClick as DSButtonT.Props['onClick'];\n return () => setIsOpened((prev) => !prev);\n }, [globalAttributes.onClick, setIsOpened]);\n\n return (\n <DSDropdownMenuV2\n isOpened={isOpened}\n options={options}\n selectedOptions={{ [pageIndex.toString()]: true }}\n onOptionClick={(_, clickedOption) => {\n onPageChange((clickedOption as DSDropdownMenuT.ItemSingleOptions).value as number);\n setIsOpened(false);\n btnRef.current?.focus();\n }}\n onClickOutside={() => {\n setIsOpened(false);\n btnRef.current?.focus();\n }}\n customOffset={[-23, 2]}\n startPlacementPreference=\"top-start\"\n actionRef={actionRef}\n onKeyDown={onKeyDown}\n minWidth={pageDetails.length !== 0 ? btnWidth + 23 : pageCount.toString().length * 6 + 90}\n maxHeight={300}\n HeaderComp={Header}\n >\n <PaginationDropdownButtonPaginator\n buttonType=\"raw\"\n disabled={isLoadingPageCount}\n innerRef={btnRef}\n aria-pressed={isOpened}\n aria-label={`Page ${pageIndex} out of ${pageCount}, ${\n pageDetails.length !== 0 ? pageDetails[pageIndex - 1] : '\\b\\b'\n }. Press to change the current page`}\n data-testid={PAGINATOR_DATA_TESTID.PAGINATOR}\n {...globalAttributes}\n {...xstyledProps}\n {...ownerPropsConfig}\n onClick={buttonOnClick}\n >\n <Grid gutter=\"xxxs\" alignItems=\"center\" style={{ gridAutoFlow: 'column' }}>\n <DSTypography fontSize=\"18px\" variant=\"b1\" as=\"span\" fontWeight=\"semibold\" textAlign=\"start\">\n {pageIndex}\n </DSTypography>\n / {pageCount}\n {isLoadingPageCount && <DSCircularIndeterminateIndicator ml=\"xxxs\" mr=\"xxxs\" size=\"xs\" />}\n {pageDetails.length !== 0 && (\n <>\n <DSPaginationSeparator height=\"12px\" ml=\"12px\" mr=\"xxxs\" {...ownerPropsConfig} />\n <DSTypography\n fontSize=\"13px\"\n w={detailWidth}\n mr=\"xxs\"\n variant=\"b1\"\n as=\"span\"\n fontWeight=\"semibold\"\n textAlign=\"start\"\n >\n {pageDetails[pageIndex - 1]}\n </DSTypography>\n </>\n )}\n <ChevronDown ml=\"xxxs\" color={['brand-primary', '700']} />\n </Grid>\n </PaginationDropdownButtonPaginator>\n {/* We calculate the length of the longest detail here (this is as per specs) */}\n <Grid style={{ position: 'relative' }}>\n {pageDetails.map((pageDetail) => (\n <InvisibleDiv data-testid=\"ds-pagination-invisible-detail-for-width-calc\" key={pageDetail}>\n <DSTypography fontSize=\"13px\" mr=\"xxs\" variant=\"b1\" as=\"span\" fontWeight=\"semibold\" textAlign=\"start\">\n {pageDetail}\n </DSTypography>\n </InvisibleDiv>\n ))}\n </Grid>\n </DSDropdownMenuV2>\n );\n};\n\nDSPaginator.displayName = DSPaginatorName;\nconst DSPaginatorWithSchema = describe(DSPaginator);\nDSPaginatorWithSchema.propTypes = DSPaginatorPropTypesSchema;\n\nexport { DSPaginator, DSPaginatorWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD+Eb;AA/EV,mBAA+B;AAE/B,4CAAiD;AACjD,gCAAuD;AACvD,qBAAqB;AACrB,sBAA4B;AAC5B,8BAAyB;AACzB,2BAA6B;AAC7B,mCAAsC;AACtC,mCAAsC;AACtC,0BAA6B;AAC7B,uBAAuD;AACvD,mCAA8D;AAC9D,oBAAgE;AAEhE,MAAM,cAAuD,CAAC,UAAU;AACtE,QAAM;AAAA,IACJ,kBAAkB,EAAE,WAAW,WAAW,oBAAoB,cAAc,aAAa,iBAAiB;AAAA,IAC1G;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,QAAI,kCAAa,KAAK;AAEtB,QAAM,aAAS;AAAA,IACb,UAAM,oDAAsB,EAAE,kBAAkB,eAAe,iBAAiB,CAAC;AAAA,IACjF,CAAC,kBAAkB,eAAe,gBAAgB;AAAA,EACpD;AAEA,QAAM,oBAA4C,sBAAQ,MAAM;AAC9D,QAAI,iBAAiB,QAAS,QAAO,iBAAiB;AACtD,WAAO,MAAM,YAAY,CAAC,SAAS,CAAC,IAAI;AAAA,EAC1C,GAAG,CAAC,iBAAiB,SAAS,WAAW,CAAC;AAE1C,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,iBAAiB,EAAE,CAAC,UAAU,SAAS,CAAC,GAAG,KAAK;AAAA,MAChD,eAAe,CAAC,GAAG,kBAAkB;AACnC,qBAAc,cAAoD,KAAe;AACjF,oBAAY,KAAK;AACjB,eAAO,SAAS,MAAM;AAAA,MACxB;AAAA,MACA,gBAAgB,MAAM;AACpB,oBAAY,KAAK;AACjB,eAAO,SAAS,MAAM;AAAA,MACxB;AAAA,MACA,cAAc,CAAC,KAAK,CAAC;AAAA,MACrB,0BAAyB;AAAA,MACzB;AAAA,MACA;AAAA,MACA,UAAU,YAAY,WAAW,IAAI,WAAW,KAAK,UAAU,SAAS,EAAE,SAAS,IAAI;AAAA,MACvF,WAAW;AAAA,MACX,YAAY;AAAA,MAEZ;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,YAAW;AAAA,YACX,UAAU;AAAA,YACV,UAAU;AAAA,YACV,gBAAc;AAAA,YACd,cAAY,QAAQ,SAAS,WAAW,SAAS,KAC/C,YAAY,WAAW,IAAI,YAAY,YAAY,CAAC,IAAI,MAC1D;AAAA,YACA,eAAa,uCAAsB;AAAA,YAClC,GAAG;AAAA,YACH,GAAG;AAAA,YACH,GAAG;AAAA,YACJ,SAAS;AAAA,YAET,uDAAC,uBAAK,QAAO,QAAO,YAAW,UAAS,OAAO,EAAE,cAAc,SAAS,GACtE;AAAA,0DAAC,qCAAa,UAAS,QAAO,SAAQ,MAAK,IAAG,QAAO,YAAW,YAAW,WAAU,SAClF,qBACH;AAAA,cAAe;AAAA,cACZ;AAAA,cACF,sBAAsB,4CAAC,0EAAiC,IAAG,QAAO,IAAG,QAAO,MAAK,MAAK;AAAA,cACtF,YAAY,WAAW,KACtB,4EACE;AAAA,4DAAC,sDAAsB,QAAO,QAAO,IAAG,QAAO,IAAG,QAAQ,GAAG,kBAAkB;AAAA,gBAC/E;AAAA,kBAAC;AAAA;AAAA,oBACC,UAAS;AAAA,oBACT,GAAG;AAAA,oBACH,IAAG;AAAA,oBACH,SAAQ;AAAA,oBACR,IAAG;AAAA,oBACH,YAAW;AAAA,oBACX,WAAU;AAAA,oBAET,sBAAY,YAAY,CAAC;AAAA;AAAA,gBAC5B;AAAA,iBACF;AAAA,cAEF,4CAAC,+BAAY,IAAG,QAAO,OAAO,CAAC,iBAAiB,KAAK,GAAG;AAAA,eAC1D;AAAA;AAAA,QACF;AAAA,QAEA,4CAAC,uBAAK,OAAO,EAAE,UAAU,WAAW,GACjC,sBAAY,IAAI,CAAC,eAChB,4CAAC,8BAAa,eAAY,iDACxB,sDAAC,qCAAa,UAAS,QAAO,IAAG,OAAM,SAAQ,MAAK,IAAG,QAAO,YAAW,YAAW,WAAU,SAC3F,sBACH,KAH6E,UAI/E,CACD,GACH;AAAA;AAAA;AAAA,EACF;AAEJ;AAEA,YAAY,cAAc;AAC1B,MAAM,4BAAwB,kCAAS,WAAW;AAClD,sBAAsB,YAAY;",
6
+ "names": []
7
+ }
@@ -34,13 +34,17 @@ module.exports = __toCommonJS(createPaginatorHeader_exports);
34
34
  var React = __toESM(require("react"));
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
36
36
  var import_ds_grid = require("@elliemae/ds-grid");
37
- var import_styled = require("../../styled.js");
38
- const createPaginatorHeader = ({ pageDetailsTitle, pageInfoWidth }) => {
37
+ var import_DSPaginationSeparator = require("../../DSPaginationSeparator/index.js");
38
+ const createPaginatorHeader = ({
39
+ pageDetailsTitle,
40
+ pageInfoWidth,
41
+ ownerPropsConfig
42
+ }) => {
39
43
  const Comp = () => {
40
44
  if (pageDetailsTitle === "") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: "Page" });
41
45
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { cols: [`${pageInfoWidth + 50}px`, "8px", "auto"], children: [
42
46
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { style: { marginLeft: "8px" }, children: "Page" }),
43
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.DSPaginationSeparator, { height: "100%" }),
47
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DSPaginationSeparator.DSPaginationSeparator, { height: "100%", ...ownerPropsConfig }),
44
48
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: pageDetailsTitle })
45
49
  ] });
46
50
  };
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/parts/DSPaginator/config/createPaginatorHeader.tsx", "../../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSPaginationSeparator } from '../../DSPaginationSeparator/index.js';\n\ninterface PaginatorHeaderOptions {\n pageDetailsTitle: string;\n pageInfoWidth: number;\n ownerPropsConfig: Record<string, unknown>;\n}\n\nexport const createPaginatorHeader = ({\n pageDetailsTitle,\n pageInfoWidth,\n ownerPropsConfig,\n}: PaginatorHeaderOptions) => {\n const Comp = () => {\n if (pageDetailsTitle === '') return <>Page</>;\n\n return (\n <Grid cols={[`${pageInfoWidth + 50}px`, '8px', 'auto']}>\n <span style={{ marginLeft: '8px' }}>Page</span>\n <DSPaginationSeparator height=\"100%\" {...ownerPropsConfig} />\n <span>{pageDetailsTitle}</span>\n </Grid>\n );\n };\n return Comp;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgBiB;AAfxC,qBAAqB;AACrB,mCAAsC;AAQ/B,MAAM,wBAAwB,CAAC;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AACF,MAA8B;AAC5B,QAAM,OAAO,MAAM;AACjB,QAAI,qBAAqB,GAAI,QAAO,2EAAE,kBAAI;AAE1C,WACE,6CAAC,uBAAK,MAAM,CAAC,GAAG,gBAAgB,EAAE,MAAM,OAAO,MAAM,GACnD;AAAA,kDAAC,UAAK,OAAO,EAAE,YAAY,MAAM,GAAG,kBAAI;AAAA,MACxC,4CAAC,sDAAsB,QAAO,QAAQ,GAAG,kBAAkB;AAAA,MAC3D,4CAAC,UAAM,4BAAiB;AAAA,OAC1B;AAAA,EAEJ;AACA,SAAO;AACT;",
6
+ "names": []
7
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/parts/DSPaginator/getOptions.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../../../src/parts/DSPaginator/config/getOptions.tsx", "../../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { Checkmark } from '@elliemae/ds-icons';\nimport type { DSDropdownMenuT } from '@elliemae/ds-dropdownmenu-v2';\n\ninterface OptionWithDetailsT {\n pageInfoWidth: number;\n pageIndex: number;\n index: number;\n pageDetails: string[] | readonly string[];\n}\n\nconst OptionWithDetails = (props: OptionWithDetailsT) => {\n const Comp = () => {\n const { pageInfoWidth, pageIndex, index, pageDetails } = props;\n return (\n <Grid cols={['16px', `${pageInfoWidth + 16}px`, 'auto']} gutter=\"xxs\" alignItems=\"center\">\n {pageIndex - 1 === index ? <Checkmark size=\"s\" color={['brand-primary', '600']} /> : <div />}\n <span>{index + 1}</span>\n <span\n style={{\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n }}\n >\n {pageDetails[index]}\n </span>\n </Grid>\n );\n };\n return Comp;\n};\n\nexport const getOptions = (args: {\n pageCount: number | string;\n pageIndex: number;\n pageDetails: string[] | readonly string[];\n pageInfoWidth: number;\n}): DSDropdownMenuT.ItemSingleOptions[] => {\n const { pageCount, pageIndex, pageDetails, pageInfoWidth } = args;\n\n const amountOfPages = typeof pageCount === 'string' ? pageIndex + 1 : pageCount;\n\n const options = new Array(amountOfPages).fill(0).map((_, index) => {\n const option: DSDropdownMenuT.ItemSingleOptions = {\n dsId: (index + 1).toString(),\n label: (index + 1).toString(),\n value: index + 1,\n type: 'single',\n };\n if (pageDetails?.length) {\n option.render = OptionWithDetails({ pageInfoWidth, pageIndex, index, pageDetails });\n }\n return option;\n });\n return options;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgBjB;AAfN,qBAAqB;AACrB,sBAA0B;AAU1B,MAAM,oBAAoB,CAAC,UAA8B;AACvD,QAAM,OAAO,MAAM;AACjB,UAAM,EAAE,eAAe,WAAW,OAAO,YAAY,IAAI;AACzD,WACE,6CAAC,uBAAK,MAAM,CAAC,QAAQ,GAAG,gBAAgB,EAAE,MAAM,MAAM,GAAG,QAAO,OAAM,YAAW,UAC9E;AAAA,kBAAY,MAAM,QAAQ,4CAAC,6BAAU,MAAK,KAAI,OAAO,CAAC,iBAAiB,KAAK,GAAG,IAAK,4CAAC,SAAI;AAAA,MAC1F,4CAAC,UAAM,kBAAQ,GAAE;AAAA,MACjB;AAAA,QAAC;AAAA;AAAA,UACC,OAAO;AAAA,YACL,YAAY;AAAA,YACZ,cAAc;AAAA,YACd,UAAU;AAAA,UACZ;AAAA,UAEC,sBAAY,KAAK;AAAA;AAAA,MACpB;AAAA,OACF;AAAA,EAEJ;AACA,SAAO;AACT;AAEO,MAAM,aAAa,CAAC,SAKgB;AACzC,QAAM,EAAE,WAAW,WAAW,aAAa,cAAc,IAAI;AAE7D,QAAM,gBAAgB,OAAO,cAAc,WAAW,YAAY,IAAI;AAEtE,QAAM,UAAU,IAAI,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,GAAG,UAAU;AACjE,UAAM,SAA4C;AAAA,MAChD,OAAO,QAAQ,GAAG,SAAS;AAAA,MAC3B,QAAQ,QAAQ,GAAG,SAAS;AAAA,MAC5B,OAAO,QAAQ;AAAA,MACf,MAAM;AAAA,IACR;AACA,QAAI,aAAa,QAAQ;AACvB,aAAO,SAAS,kBAAkB,EAAE,eAAe,WAAW,OAAO,YAAY,CAAC;AAAA,IACpF;AACA,WAAO;AAAA,EACT,CAAC;AACD,SAAO;AACT;",
6
6
  "names": []
@@ -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/DSPaginator/config/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": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/parts/DSPaginator/usePaginationSearch.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../../../../src/parts/DSPaginator/config/usePaginationSearch.tsx", "../../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import { useCallback, useEffect, useRef, useState } from 'react';\n\nexport const usePaginationSearch = (\n pageCount: string | number,\n actionRef: React.MutableRefObject<Record<string, (dsId: string) => void>>,\n): React.KeyboardEventHandler => {\n const [searchValue, setSearchValue] = useState('');\n const [shouldResetSearchValue, setShouldResetSearchValue] = useState(true);\n\n const timeoutRef = useRef<NodeJS.Timeout>();\n\n useEffect(() => {\n if (typeof pageCount === 'string') return;\n\n if (searchValue !== '' && Number.parseInt(searchValue, 10) <= pageCount) {\n actionRef.current.setActiveDescendant(searchValue);\n actionRef.current.scrollOptionIntoView(searchValue);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [searchValue]);\n\n const onKeyDown = useCallback(\n (e: React.KeyboardEvent) => {\n if (e.code.startsWith('Digit')) {\n if (shouldResetSearchValue) setSearchValue(e.key);\n else setSearchValue((prevValue) => prevValue + e.key);\n\n setShouldResetSearchValue(false);\n if (timeoutRef.current) clearTimeout(timeoutRef.current);\n timeoutRef.current = setTimeout(() => {\n setShouldResetSearchValue(true);\n }, 1000);\n }\n },\n [shouldResetSearchValue],\n );\n\n return onKeyDown;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAyD;AAElD,MAAM,sBAAsB,CACjC,WACA,cAC+B;AAC/B,QAAM,CAAC,aAAa,cAAc,QAAI,uBAAS,EAAE;AACjD,QAAM,CAAC,wBAAwB,yBAAyB,QAAI,uBAAS,IAAI;AAEzE,QAAM,iBAAa,qBAAuB;AAE1C,8BAAU,MAAM;AACd,QAAI,OAAO,cAAc,SAAU;AAEnC,QAAI,gBAAgB,MAAM,OAAO,SAAS,aAAa,EAAE,KAAK,WAAW;AACvE,gBAAU,QAAQ,oBAAoB,WAAW;AACjD,gBAAU,QAAQ,qBAAqB,WAAW;AAAA,IACpD;AAAA,EAEF,GAAG,CAAC,WAAW,CAAC;AAEhB,QAAM,gBAAY;AAAA,IAChB,CAAC,MAA2B;AAC1B,UAAI,EAAE,KAAK,WAAW,OAAO,GAAG;AAC9B,YAAI,uBAAwB,gBAAe,EAAE,GAAG;AAAA,YAC3C,gBAAe,CAAC,cAAc,YAAY,EAAE,GAAG;AAEpD,kCAA0B,KAAK;AAC/B,YAAI,WAAW,QAAS,cAAa,WAAW,OAAO;AACvD,mBAAW,UAAU,WAAW,MAAM;AACpC,oCAA0B,IAAI;AAAA,QAChC,GAAG,GAAI;AAAA,MACT;AAAA,IACF;AAAA,IACA,CAAC,sBAAsB;AAAA,EACzB;AAEA,SAAO;AACT;",
6
6
  "names": []
@@ -32,13 +32,22 @@ __export(usePaginator_exports, {
32
32
  });
33
33
  module.exports = __toCommonJS(usePaginator_exports);
34
34
  var React = __toESM(require("react"));
35
- var import_react = require("react");
36
35
  var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
37
- var import_usePaginationSearch = require("./usePaginationSearch.js");
38
- var import_getOptions = require("./getOptions.js");
36
+ var import_react = __toESM(require("react"));
37
+ var import_react_desc_prop_types = require("../react-desc-prop-types.js");
38
+ var import_useValidateProps = require("./useValidateProps.js");
39
39
  var import_useOnElementOnResize = require("./useOnElementOnResize.js");
40
- const usePaginator = (props) => {
41
- const { pageIndex, pageCount, pageDetails } = props;
40
+ var import_getOptions = require("./getOptions.js");
41
+ var import_usePaginationSearch = require("./usePaginationSearch.js");
42
+ const usePaginator = (propsFromUser) => {
43
+ const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(propsFromUser, import_react_desc_prop_types.defaultProps);
44
+ (0, import_useValidateProps.useValidateProps)(propsWithDefault, import_react_desc_prop_types.DSPaginatorPropTypesSchema);
45
+ const xstyledProps = (0, import_ds_props_helpers.useGetXstyledProps)(propsWithDefault);
46
+ const globalAttributes = (0, import_ds_props_helpers.useGetGlobalAttributes)(
47
+ propsWithDefault
48
+ );
49
+ const ownerPropsConfig = (0, import_ds_props_helpers.useOwnerProps)(propsWithDefault);
50
+ const { pageIndex, pageCount, pageDetails } = propsWithDefault;
42
51
  const [isOpened, setIsOpened] = (0, import_react.useState)(false);
43
52
  const [detailWidth, setDetailWidth] = (0, import_react.useState)(0);
44
53
  const [pageInfoWidth, setPageInfoWidth] = (0, import_react.useState)(0);
@@ -50,8 +59,6 @@ const usePaginator = (props) => {
50
59
  [pageCount, pageIndex, pageDetails, pageInfoWidth]
51
60
  );
52
61
  const onKeyDown = (0, import_usePaginationSearch.usePaginationSearch)(pageCount, actionRef);
53
- const globalAttributes = (0, import_ds_props_helpers.useGetGlobalAttributes)(props);
54
- const xstyledAttributes = (0, import_ds_props_helpers.useGetXstyledProps)(props);
55
62
  (0, import_react.useEffect)(() => {
56
63
  if (isOpened) {
57
64
  actionRef.current.setActiveDescendant(pageIndex.toString());
@@ -71,19 +78,37 @@ const usePaginator = (props) => {
71
78
  return btnWidth - 56;
72
79
  });
73
80
  }, [btnWidth, detailWidth]);
74
- return {
75
- btnRef,
76
- btnWidth,
77
- pageInfoWidth,
78
- options,
79
- isOpened,
80
- setIsOpened,
81
- detailWidth,
82
- setDetailWidth,
83
- globalAttributes,
84
- xstyledAttributes,
85
- actionRef,
86
- onKeyDown
87
- };
81
+ return import_react.default.useMemo(
82
+ () => ({
83
+ propsWithDefault,
84
+ xstyledProps,
85
+ globalAttributes,
86
+ ownerPropsConfig,
87
+ btnRef,
88
+ btnWidth,
89
+ pageInfoWidth,
90
+ options,
91
+ isOpened,
92
+ detailWidth,
93
+ actionRef,
94
+ setIsOpened,
95
+ onKeyDown
96
+ }),
97
+ [
98
+ propsWithDefault,
99
+ xstyledProps,
100
+ globalAttributes,
101
+ ownerPropsConfig,
102
+ btnRef,
103
+ btnWidth,
104
+ pageInfoWidth,
105
+ options,
106
+ isOpened,
107
+ detailWidth,
108
+ actionRef,
109
+ setIsOpened,
110
+ onKeyDown
111
+ ]
112
+ );
88
113
  };
89
114
  //# sourceMappingURL=usePaginator.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/parts/DSPaginator/config/usePaginator.ts", "../../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n useOwnerProps,\n} from '@elliemae/ds-props-helpers';\nimport React, { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';\n\nimport type { DSButtonV3T } from '@elliemae/ds-button-v2';\nimport { type DSPaginatorT, DSPaginatorPropTypesSchema, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\nimport { useOnElementResize } from './useOnElementOnResize.js';\nimport { getOptions } from './getOptions.js';\nimport { usePaginationSearch } from './usePaginationSearch.js';\n\nexport const usePaginator = (propsFromUser: DSPaginatorT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSPaginatorT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSPaginatorPropTypesSchema);\n // =============================================================================\n // XSTYLED PROPS\n // =============================================================================\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n // =============================================================================\n // GLOBAL ATTRIBUTES\n // =============================================================================\n const globalAttributes = useGetGlobalAttributes<DSPaginatorT.InternalProps, HTMLButtonElement, DSButtonV3T.Props>(\n propsWithDefault,\n );\n // =============================================================================\n // OWNER PROPS\n // =============================================================================\n const ownerPropsConfig = useOwnerProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n\n const { pageIndex, pageCount, pageDetails } = propsWithDefault;\n\n const [isOpened, setIsOpened] = useState(false);\n const [detailWidth, setDetailWidth] = useState(0);\n const [pageInfoWidth, setPageInfoWidth] = useState(0);\n\n const btnRef = useRef<HTMLButtonElement>(null);\n const actionRef = useRef<Record<string, (dsId: string) => void>>({});\n\n const { width: btnWidth } = useOnElementResize(btnRef);\n\n const options = useMemo(\n () => getOptions({ pageCount, pageIndex, pageDetails, pageInfoWidth }),\n [pageCount, pageIndex, pageDetails, pageInfoWidth],\n );\n // =============================================================================\n // HELPERS HOOKS CONFIGS\n // =============================================================================\n // const eventHandlers = useEventHandlers({ propsWithDefault, instanceUid }); // <-- complex logic should be made atomics this way\n const onKeyDown = usePaginationSearch(pageCount, actionRef);\n useEffect(() => {\n if (isOpened) {\n actionRef.current.setActiveDescendant(pageIndex.toString());\n actionRef.current.scrollOptionIntoView(pageIndex.toString());\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isOpened]);\n\n useLayoutEffect(() => {\n const invisibleDetails = [\n ...document.body.querySelectorAll('[data-testid=\"ds-pagination-invisible-detail-for-width-calc\"]'),\n ] as HTMLDivElement[];\n const maxWidth = invisibleDetails.reduce((acc, cur) => Math.max(acc, cur.getBoundingClientRect().width), 0);\n setDetailWidth(maxWidth);\n }, [pageDetails]);\n\n useEffect(() => {\n setPageInfoWidth(() => {\n // Here we get the size of the page info\n // Inside of the button, we have the page info, the chevron, separators, page details and padding\n // We substract the detailWidth if present, and the padding + chevron + separators in each case\n if (detailWidth) return btnWidth - detailWidth - 89;\n return btnWidth - 56;\n });\n }, [btnWidth, detailWidth]);\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n xstyledProps,\n globalAttributes,\n ownerPropsConfig,\n btnRef,\n btnWidth,\n pageInfoWidth,\n options,\n isOpened,\n detailWidth,\n actionRef,\n setIsOpened,\n onKeyDown,\n }),\n [\n propsWithDefault,\n xstyledProps,\n globalAttributes,\n ownerPropsConfig,\n btnRef,\n btnWidth,\n pageInfoWidth,\n options,\n isOpened,\n detailWidth,\n actionRef,\n setIsOpened,\n onKeyDown,\n ],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAKO;AACP,mBAA6E;AAG7E,mCAA4E;AAC5E,8BAAiC;AACjC,kCAAmC;AACnC,wBAA2B;AAC3B,iCAAoC;AAE7B,MAAM,eAAe,CAAC,kBAAsC;AAIjE,QAAM,uBAAmB,sDAAyD,eAAe,yCAAY;AAC7G,gDAAiB,kBAAkB,uDAA0B;AAI7D,QAAM,mBAAe,4CAAmB,gBAAgB;AAIxD,QAAM,uBAAmB;AAAA,IACvB;AAAA,EACF;AAIA,QAAM,uBAAmB,uCAAc,gBAAgB;AAKvD,QAAM,EAAE,WAAW,WAAW,YAAY,IAAI;AAE9C,QAAM,CAAC,UAAU,WAAW,QAAI,uBAAS,KAAK;AAC9C,QAAM,CAAC,aAAa,cAAc,QAAI,uBAAS,CAAC;AAChD,QAAM,CAAC,eAAe,gBAAgB,QAAI,uBAAS,CAAC;AAEpD,QAAM,aAAS,qBAA0B,IAAI;AAC7C,QAAM,gBAAY,qBAA+C,CAAC,CAAC;AAEnE,QAAM,EAAE,OAAO,SAAS,QAAI,gDAAmB,MAAM;AAErD,QAAM,cAAU;AAAA,IACd,UAAM,8BAAW,EAAE,WAAW,WAAW,aAAa,cAAc,CAAC;AAAA,IACrE,CAAC,WAAW,WAAW,aAAa,aAAa;AAAA,EACnD;AAKA,QAAM,gBAAY,gDAAoB,WAAW,SAAS;AAC1D,8BAAU,MAAM;AACd,QAAI,UAAU;AACZ,gBAAU,QAAQ,oBAAoB,UAAU,SAAS,CAAC;AAC1D,gBAAU,QAAQ,qBAAqB,UAAU,SAAS,CAAC;AAAA,IAC7D;AAAA,EAEF,GAAG,CAAC,QAAQ,CAAC;AAEb,oCAAgB,MAAM;AACpB,UAAM,mBAAmB;AAAA,MACvB,GAAG,SAAS,KAAK,iBAAiB,+DAA+D;AAAA,IACnG;AACA,UAAM,WAAW,iBAAiB,OAAO,CAAC,KAAK,QAAQ,KAAK,IAAI,KAAK,IAAI,sBAAsB,EAAE,KAAK,GAAG,CAAC;AAC1G,mBAAe,QAAQ;AAAA,EACzB,GAAG,CAAC,WAAW,CAAC;AAEhB,8BAAU,MAAM;AACd,qBAAiB,MAAM;AAIrB,UAAI,YAAa,QAAO,WAAW,cAAc;AACjD,aAAO,WAAW;AAAA,IACpB,CAAC;AAAA,EACH,GAAG,CAAC,UAAU,WAAW,CAAC;AAE1B,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF;",
6
+ "names": ["React"]
7
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var useValidateProps_exports = {};
30
+ __export(useValidateProps_exports, {
31
+ useValidateProps: () => useValidateProps
32
+ });
33
+ module.exports = __toCommonJS(useValidateProps_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
+ var import_constants = require("../constants/index.js");
37
+ const useValidateProps = (props, propTypes) => {
38
+ (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(props, propTypes, import_constants.DSPaginatorName);
39
+ };
40
+ //# sourceMappingURL=useValidateProps.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/parts/DSPaginator/config/useValidateProps.ts", "../../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport type { ValidationMap } from '@elliemae/ds-props-helpers';\nimport { type DSPaginatorT } from '../react-desc-prop-types.js';\nimport { DSPaginatorName } from '../constants/index.js';\n\nexport const useValidateProps = (\n props: DSPaginatorT.InternalProps,\n propTypes: ValidationMap<DSPaginatorT.Props>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSPaginatorName);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA+C;AAG/C,uBAAgC;AAEzB,MAAM,mBAAmB,CAC9B,OACA,cACS;AAET,8DAA+B,OAAO,WAAW,gCAAe;AAClE;",
6
+ "names": []
7
+ }