@elliemae/ds-pagination 3.57.0-next.5 → 3.57.0-next.50

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 (392) 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 +212 -0
  71. package/dist/cjs/parts/DSPaginator/DSPaginator.js.map +7 -0
  72. package/dist/cjs/parts/DSPaginator/{createPaginatorHeader.js → config/createPaginatorHeader.js} +11 -6
  73. package/dist/cjs/parts/DSPaginator/config/createPaginatorHeader.js.map +7 -0
  74. package/dist/cjs/parts/DSPaginator/{getOptions.js → config/getOptions.js} +4 -4
  75. package/dist/cjs/parts/DSPaginator/config/getOptions.js.map +7 -0
  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} +62 -38
  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/parts/DSPaginator/styled.js +135 -0
  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 +125 -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/{styled.js → parts/DSPerPageSelector/styled.js} +36 -41
  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/parts/{DSPaginator → shared}/useOnElementOnResize.js.map +1 -1
  117. package/dist/cjs/react-desc-prop-types.js +1 -86
  118. package/dist/cjs/react-desc-prop-types.js.map +2 -2
  119. package/dist/esm/{Pagination.js → DSPagination.js} +6 -6
  120. package/dist/esm/DSPagination.js.map +7 -0
  121. package/dist/esm/config/usePagination.js +21 -0
  122. package/dist/esm/config/usePagination.js.map +7 -0
  123. package/dist/esm/config/useValidateProps.js +10 -0
  124. package/dist/esm/config/useValidateProps.js.map +7 -0
  125. package/dist/esm/constants/index.js +27 -0
  126. package/dist/esm/constants/index.js.map +7 -0
  127. package/dist/esm/index.js +45 -13
  128. package/dist/esm/index.js.map +3 -3
  129. package/dist/esm/package.json +4 -1
  130. package/dist/esm/parts/DSPageNextButton/DSPageNextButton.js +74 -0
  131. package/dist/esm/parts/DSPageNextButton/DSPageNextButton.js.map +7 -0
  132. package/dist/esm/parts/DSPageNextButton/config/usePageNextButton.js +30 -0
  133. package/dist/esm/parts/DSPageNextButton/config/usePageNextButton.js.map +7 -0
  134. package/dist/esm/parts/DSPageNextButton/config/useValidateProps.js +10 -0
  135. package/dist/esm/parts/DSPageNextButton/config/useValidateProps.js.map +7 -0
  136. package/dist/esm/parts/DSPageNextButton/constants/index.js +18 -0
  137. package/dist/esm/parts/DSPageNextButton/constants/index.js.map +7 -0
  138. package/dist/esm/parts/DSPageNextButton/index.js +11 -0
  139. package/dist/esm/parts/DSPageNextButton/index.js.map +7 -0
  140. package/dist/esm/parts/DSPageNextButton/react-desc-prop-types.js +26 -0
  141. package/dist/esm/parts/DSPageNextButton/react-desc-prop-types.js.map +7 -0
  142. package/dist/esm/parts/DSPageNextButton/typescript-testing/slot-props.js +9 -0
  143. package/dist/esm/parts/DSPageNextButton/typescript-testing/slot-props.js.map +7 -0
  144. package/dist/esm/{typescript-testing/typescript-page-next-button-valid.js → parts/DSPageNextButton/typescript-testing/typescript-testing.js} +1 -1
  145. package/dist/esm/parts/DSPageNextButton/typescript-testing/typescript-testing.js.map +7 -0
  146. package/dist/esm/parts/DSPagePrevButton/DSPagePrevButton.js +74 -0
  147. package/dist/esm/parts/DSPagePrevButton/DSPagePrevButton.js.map +7 -0
  148. package/dist/esm/parts/DSPagePrevButton/config/usePagePrevButton.js +30 -0
  149. package/dist/esm/parts/DSPagePrevButton/config/usePagePrevButton.js.map +7 -0
  150. package/dist/esm/parts/DSPagePrevButton/config/useValidateProps.js +10 -0
  151. package/dist/esm/parts/DSPagePrevButton/config/useValidateProps.js.map +7 -0
  152. package/dist/esm/parts/DSPagePrevButton/constants/index.js +18 -0
  153. package/dist/esm/parts/DSPagePrevButton/constants/index.js.map +7 -0
  154. package/dist/esm/parts/DSPagePrevButton/index.js +11 -0
  155. package/dist/esm/parts/DSPagePrevButton/index.js.map +7 -0
  156. package/dist/esm/parts/DSPagePrevButton/react-desc-prop-types.js +26 -0
  157. package/dist/esm/parts/DSPagePrevButton/react-desc-prop-types.js.map +7 -0
  158. package/dist/esm/parts/DSPagePrevButton/typescript-testing/slot-props.js +9 -0
  159. package/dist/esm/parts/DSPagePrevButton/typescript-testing/slot-props.js.map +7 -0
  160. package/dist/esm/{typescript-testing/typescript-page-prev-button-valid.js → parts/DSPagePrevButton/typescript-testing/typescript-testing.js} +1 -1
  161. package/dist/esm/parts/DSPagePrevButton/typescript-testing/typescript-testing.js.map +7 -0
  162. package/dist/esm/parts/DSPaginationContainer/DSPaginationContainer.js +50 -0
  163. package/dist/esm/parts/DSPaginationContainer/DSPaginationContainer.js.map +7 -0
  164. package/dist/esm/parts/DSPaginationContainer/config/usePaginationContainer.js +38 -0
  165. package/dist/esm/parts/DSPaginationContainer/config/usePaginationContainer.js.map +7 -0
  166. package/dist/esm/parts/DSPaginationContainer/config/useValidateProps.js +10 -0
  167. package/dist/esm/parts/DSPaginationContainer/config/useValidateProps.js.map +7 -0
  168. package/dist/esm/parts/DSPaginationContainer/constants/index.js +20 -0
  169. package/dist/esm/parts/DSPaginationContainer/constants/index.js.map +7 -0
  170. package/dist/esm/parts/DSPaginationContainer/index.js +15 -0
  171. package/dist/esm/parts/DSPaginationContainer/index.js.map +7 -0
  172. package/dist/esm/parts/DSPaginationContainer/react-desc-prop-types.js +18 -0
  173. package/dist/esm/parts/DSPaginationContainer/react-desc-prop-types.js.map +7 -0
  174. package/dist/esm/parts/DSPaginationContainer/typescript-testing/slot-props.js +11 -0
  175. package/dist/esm/parts/DSPaginationContainer/typescript-testing/slot-props.js.map +7 -0
  176. package/dist/esm/parts/DSPaginationSeparator/DSPaginationSeparator.js +43 -0
  177. package/dist/esm/parts/DSPaginationSeparator/DSPaginationSeparator.js.map +7 -0
  178. package/dist/esm/parts/DSPaginationSeparator/config/usePaginationSeparator.js +38 -0
  179. package/dist/esm/parts/DSPaginationSeparator/config/usePaginationSeparator.js.map +7 -0
  180. package/dist/esm/parts/DSPaginationSeparator/config/useValidateProps.js +10 -0
  181. package/dist/esm/parts/DSPaginationSeparator/config/useValidateProps.js.map +7 -0
  182. package/dist/esm/parts/DSPaginationSeparator/constants/index.js +15 -0
  183. package/dist/esm/parts/DSPaginationSeparator/constants/index.js.map +7 -0
  184. package/dist/esm/parts/DSPaginationSeparator/index.js +15 -0
  185. package/dist/esm/parts/DSPaginationSeparator/index.js.map +7 -0
  186. package/dist/esm/parts/DSPaginationSeparator/react-desc-prop-types.js +16 -0
  187. package/dist/esm/parts/DSPaginationSeparator/react-desc-prop-types.js.map +7 -0
  188. package/dist/esm/parts/DSPaginator/DSPaginator.js +182 -0
  189. package/dist/esm/parts/DSPaginator/DSPaginator.js.map +7 -0
  190. package/dist/esm/parts/DSPaginator/config/createPaginatorHeader.js +24 -0
  191. package/dist/esm/parts/DSPaginator/config/createPaginatorHeader.js.map +7 -0
  192. package/dist/esm/parts/DSPaginator/{getOptions.js → config/getOptions.js} +4 -4
  193. package/dist/esm/parts/DSPaginator/config/getOptions.js.map +7 -0
  194. package/dist/esm/parts/DSPaginator/{usePaginationSearch.js.map → config/usePaginationSearch.js.map} +1 -1
  195. package/dist/esm/parts/DSPaginator/config/usePaginator.js +88 -0
  196. package/dist/esm/parts/DSPaginator/config/usePaginator.js.map +7 -0
  197. package/dist/esm/parts/DSPaginator/config/useValidateProps.js +10 -0
  198. package/dist/esm/parts/DSPaginator/config/useValidateProps.js.map +7 -0
  199. package/dist/esm/parts/DSPaginator/constants/index.js +15 -0
  200. package/dist/esm/parts/DSPaginator/constants/index.js.map +7 -0
  201. package/dist/esm/parts/DSPaginator/index.js +6 -111
  202. package/dist/esm/parts/DSPaginator/index.js.map +3 -3
  203. package/dist/esm/parts/DSPaginator/react-desc-prop-types.js +34 -0
  204. package/dist/esm/parts/DSPaginator/react-desc-prop-types.js.map +7 -0
  205. package/dist/esm/parts/DSPaginator/styled.js +105 -0
  206. package/dist/esm/parts/DSPaginator/styled.js.map +7 -0
  207. package/dist/esm/parts/DSPaginator/typescript-testing/slot-props.js +9 -0
  208. package/dist/esm/parts/DSPaginator/typescript-testing/slot-props.js.map +7 -0
  209. package/dist/esm/{typescript-testing/typescript-paginator-valid.js → parts/DSPaginator/typescript-testing/typescript-testing.js} +1 -1
  210. package/dist/esm/parts/DSPaginator/typescript-testing/typescript-testing.js.map +7 -0
  211. package/dist/esm/parts/DSPerPageSelector/DSPerPageSelector.js +95 -0
  212. package/dist/esm/parts/DSPerPageSelector/DSPerPageSelector.js.map +7 -0
  213. package/dist/esm/parts/DSPerPageSelector/{getOptions.js.map → config/getOptions.js.map} +1 -1
  214. package/dist/esm/parts/DSPerPageSelector/config/usePerPageSelector.js +55 -0
  215. package/dist/esm/parts/DSPerPageSelector/config/usePerPageSelector.js.map +7 -0
  216. package/dist/esm/parts/DSPerPageSelector/config/useValidateProps.js +10 -0
  217. package/dist/esm/parts/DSPerPageSelector/config/useValidateProps.js.map +7 -0
  218. package/dist/esm/parts/DSPerPageSelector/constants/index.js +20 -0
  219. package/dist/esm/parts/DSPerPageSelector/constants/index.js.map +7 -0
  220. package/dist/esm/parts/DSPerPageSelector/index.js +6 -69
  221. package/dist/esm/parts/DSPerPageSelector/index.js.map +3 -3
  222. package/dist/esm/parts/DSPerPageSelector/react-desc-prop-types.js +33 -0
  223. package/dist/esm/parts/DSPerPageSelector/react-desc-prop-types.js.map +7 -0
  224. package/dist/esm/parts/DSPerPageSelector/styled.js +87 -0
  225. package/dist/esm/parts/DSPerPageSelector/styled.js.map +7 -0
  226. package/dist/esm/parts/DSPerPageSelector/typescript-testing/slots-props.js +9 -0
  227. package/dist/esm/parts/DSPerPageSelector/typescript-testing/slots-props.js.map +7 -0
  228. package/dist/esm/{typescript-testing/typescript-per-page-selector-valid.js → parts/DSPerPageSelector/typescript-testing/typescript-testing.js} +1 -1
  229. package/dist/esm/parts/DSPerPageSelector/typescript-testing/typescript-testing.js.map +7 -0
  230. package/dist/esm/parts/PaginationContent.js +7 -9
  231. package/dist/esm/parts/PaginationContent.js.map +2 -2
  232. package/dist/esm/parts/index.js +63 -6
  233. package/dist/esm/parts/index.js.map +2 -2
  234. package/dist/esm/parts/{DSPaginator → shared}/useOnElementOnResize.js.map +1 -1
  235. package/dist/esm/react-desc-prop-types.js +1 -86
  236. package/dist/esm/react-desc-prop-types.js.map +2 -2
  237. package/dist/types/config/usePagination.d.ts +5 -0
  238. package/dist/types/config/useValidateProps.d.ts +3 -0
  239. package/dist/types/constants/index.d.ts +29 -0
  240. package/dist/types/index.d.ts +3 -7
  241. package/dist/types/parts/DSPageNextButton/DSPageNextButton.d.ts +5 -0
  242. package/dist/types/parts/DSPageNextButton/config/usePageNextButton.d.ts +377 -0
  243. package/dist/types/parts/DSPageNextButton/config/useValidateProps.d.ts +3 -0
  244. package/dist/types/parts/DSPageNextButton/constants/index.d.ts +9 -0
  245. package/dist/types/parts/DSPageNextButton/index.d.ts +3 -0
  246. package/dist/types/parts/DSPageNextButton/react-desc-prop-types.d.ts +23 -0
  247. package/dist/types/parts/DSPageNextButton/tests/DSPageNextButton.get-owner-props.test.d.ts +1 -0
  248. package/dist/types/parts/DSPageNextButton/tests/DSPageNextButton.keyboard.test.d.ts +1 -0
  249. package/dist/types/parts/DSPageNextButton/tests/utils/NextButtonTestRender.d.ts +2 -0
  250. package/dist/types/parts/DSPageNextButton/typescript-testing/slot-props.d.ts +1 -0
  251. package/dist/types/parts/DSPageNextButton/typescript-testing/typescript-testing.d.ts +1 -0
  252. package/dist/types/parts/DSPagePrevButton/DSPagePrevButton.d.ts +5 -0
  253. package/dist/types/parts/DSPagePrevButton/config/usePagePrevButton.d.ts +377 -0
  254. package/dist/types/parts/DSPagePrevButton/config/useValidateProps.d.ts +3 -0
  255. package/dist/types/parts/DSPagePrevButton/constants/index.d.ts +9 -0
  256. package/dist/types/parts/DSPagePrevButton/index.d.ts +3 -0
  257. package/dist/types/parts/DSPagePrevButton/react-desc-prop-types.d.ts +23 -0
  258. package/dist/types/parts/DSPagePrevButton/tests/DSPagePrevButton.a11y.test.d.ts +1 -0
  259. package/dist/types/parts/DSPagePrevButton/tests/DSPagePrevButton.callbacks.test.d.ts +1 -0
  260. package/dist/types/parts/DSPagePrevButton/tests/DSPagePrevButton.data-testid.test.d.ts +1 -0
  261. package/dist/types/parts/DSPagePrevButton/tests/DSPagePrevButton.export.test.d.ts +1 -0
  262. package/dist/types/parts/DSPagePrevButton/tests/DSPagePrevButton.get-owner-props.test.d.ts +1 -0
  263. package/dist/types/parts/DSPagePrevButton/tests/DSPagePrevButton.keyboard.test.d.ts +1 -0
  264. package/dist/types/parts/DSPagePrevButton/tests/utils/PrevButtonTestRender.d.ts +1 -0
  265. package/dist/types/parts/DSPagePrevButton/typescript-testing/slot-props.d.ts +1 -0
  266. package/dist/types/parts/DSPagePrevButton/typescript-testing/typescript-testing.d.ts +1 -0
  267. package/dist/types/parts/DSPaginationContainer/DSPaginationContainer.d.ts +5 -0
  268. package/dist/types/parts/DSPaginationContainer/config/usePaginationContainer.d.ts +377 -0
  269. package/dist/types/parts/DSPaginationContainer/config/useValidateProps.d.ts +3 -0
  270. package/dist/types/parts/DSPaginationContainer/constants/index.d.ts +11 -0
  271. package/dist/types/parts/DSPaginationContainer/index.d.ts +3 -0
  272. package/dist/types/parts/DSPaginationContainer/react-desc-prop-types.d.ts +22 -0
  273. package/dist/types/parts/DSPaginationContainer/tests/DSPaginationContainer.data-testid.test.d.ts +1 -0
  274. package/dist/types/parts/DSPaginationContainer/tests/DSPaginationContainer.exports.test.d.ts +1 -0
  275. package/dist/types/parts/DSPaginationContainer/tests/DSPaginationContainer.get-owner-props.test.d.ts +1 -0
  276. package/dist/types/parts/DSPaginationContainer/tests/utils/PaginationContainerRender.d.ts +1 -0
  277. package/dist/types/parts/DSPaginationContainer/typescript-testing/slot-props.d.ts +1 -0
  278. package/dist/types/parts/DSPaginationSeparator/DSPaginationSeparator.d.ts +7 -0
  279. package/dist/types/parts/DSPaginationSeparator/config/usePaginationSeparator.d.ts +377 -0
  280. package/dist/types/parts/DSPaginationSeparator/config/useValidateProps.d.ts +3 -0
  281. package/dist/types/parts/DSPaginationSeparator/constants/index.d.ts +9 -0
  282. package/dist/types/parts/DSPaginationSeparator/index.d.ts +3 -0
  283. package/dist/types/parts/DSPaginationSeparator/react-desc-prop-types.d.ts +18 -0
  284. package/dist/types/parts/DSPaginationSeparator/tests/DSPaginationSeparator.data-testid.test.d.ts +1 -0
  285. package/dist/types/parts/DSPaginationSeparator/tests/DSPaginationSeparator.exports.test.d.ts +1 -0
  286. package/dist/types/parts/DSPaginationSeparator/tests/DSPaginationSeparator.get-owner-props.test.d.ts +1 -0
  287. package/dist/types/parts/DSPaginationSeparator/tests/utils/DSPaginationSeparatorTestRender.d.ts +1 -0
  288. package/dist/types/parts/DSPaginator/DSPaginator.d.ts +5 -0
  289. package/dist/types/parts/DSPaginator/config/createPaginatorHeader.d.ts +8 -0
  290. package/dist/types/parts/DSPaginator/{getOptions.d.ts → config/getOptions.d.ts} +1 -0
  291. package/dist/types/parts/DSPaginator/config/usePaginator.d.ts +390 -0
  292. package/dist/types/parts/DSPaginator/config/useValidateProps.d.ts +3 -0
  293. package/dist/types/parts/DSPaginator/constants/index.d.ts +9 -0
  294. package/dist/types/parts/DSPaginator/index.d.ts +3 -4
  295. package/dist/types/parts/DSPaginator/react-desc-prop-types.d.ts +27 -0
  296. package/dist/types/parts/DSPaginator/styled.d.ts +5 -0
  297. package/dist/types/parts/DSPaginator/tests/DSPaginator.a11y.test.d.ts +1 -0
  298. package/dist/types/parts/DSPaginator/tests/DSPaginator.data-testid.test.d.ts +1 -0
  299. package/dist/types/parts/DSPaginator/tests/DSPaginator.exports.test.d.ts +1 -0
  300. package/dist/types/parts/DSPaginator/tests/DSPaginator.get-owner-props.test.d.ts +1 -0
  301. package/dist/types/parts/DSPaginator/tests/DSPaginator.keyboard.test.d.ts +1 -0
  302. package/dist/types/parts/DSPaginator/tests/utils/DSPaginatorTestRender.d.ts +1 -0
  303. package/dist/types/parts/DSPaginator/typescript-testing/slot-props.d.ts +1 -0
  304. package/dist/types/parts/DSPaginator/typescript-testing/typescript-testing.d.ts +1 -0
  305. package/dist/types/parts/DSPerPageSelector/DSPerPageSelector.d.ts +5 -0
  306. package/dist/types/parts/DSPerPageSelector/config/usePerPageSelector.d.ts +384 -0
  307. package/dist/types/parts/DSPerPageSelector/config/useValidateProps.d.ts +3 -0
  308. package/dist/types/parts/DSPerPageSelector/constants/index.d.ts +13 -0
  309. package/dist/types/parts/DSPerPageSelector/index.d.ts +3 -4
  310. package/dist/types/parts/DSPerPageSelector/react-desc-prop-types.d.ts +28 -0
  311. package/dist/types/parts/DSPerPageSelector/styled.d.ts +3 -0
  312. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.a11y.test.d.ts +1 -0
  313. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.data-testid.test.d.ts +1 -0
  314. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.exports.test.d.ts +1 -0
  315. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.get-owner-props.test.d.ts +1 -0
  316. package/dist/types/parts/DSPerPageSelector/tests/DSPerPageSelector.keyboard.test.d.ts +1 -0
  317. package/dist/types/parts/DSPerPageSelector/tests/utils/PerPageSelectorTestRender.d.ts +1 -0
  318. package/dist/types/parts/DSPerPageSelector/typescript-testing/slots-props.d.ts +1 -0
  319. package/dist/types/parts/DSPerPageSelector/typescript-testing/typescript-testing.d.ts +1 -0
  320. package/dist/types/parts/index.d.ts +6 -5
  321. package/dist/types/react-desc-prop-types.d.ts +9 -540
  322. package/dist/types/tests/DSPagination.data-testid.test.d.ts +1 -0
  323. package/dist/types/tests/DSPagination.exports.test.d.ts +1 -0
  324. package/dist/types/tests/DSPagination.get-owner-props.test.d.ts +1 -0
  325. package/package.json +35 -31
  326. package/dist/cjs/DSPaginationDefinitions.js.map +0 -7
  327. package/dist/cjs/Pagination.js.map +0 -7
  328. package/dist/cjs/PaginationDataTestID.js.map +0 -7
  329. package/dist/cjs/parts/DSPageNextButton.js.map +0 -7
  330. package/dist/cjs/parts/DSPagePrevButton.js.map +0 -7
  331. package/dist/cjs/parts/DSPaginationContainer.js.map +0 -7
  332. package/dist/cjs/parts/DSPaginator/createPaginatorHeader.js.map +0 -7
  333. package/dist/cjs/parts/DSPaginator/getOptions.js.map +0 -7
  334. package/dist/cjs/parts/DSPaginator/usePaginator.js.map +0 -7
  335. package/dist/cjs/parts/DSPerPageSelector/usePerPageSelector.js.map +0 -7
  336. package/dist/cjs/props.js +0 -85
  337. package/dist/cjs/props.js.map +0 -7
  338. package/dist/cjs/styled.js.map +0 -7
  339. package/dist/cjs/typescript-testing/typescript-page-next-button-valid.js.map +0 -7
  340. package/dist/cjs/typescript-testing/typescript-page-prev-button-valid.js.map +0 -7
  341. package/dist/cjs/typescript-testing/typescript-paginator-valid.js.map +0 -7
  342. package/dist/cjs/typescript-testing/typescript-per-page-selector-valid.js.map +0 -7
  343. package/dist/esm/DSPaginationDefinitions.js +0 -24
  344. package/dist/esm/DSPaginationDefinitions.js.map +0 -7
  345. package/dist/esm/Pagination.js.map +0 -7
  346. package/dist/esm/PaginationDataTestID.js +0 -14
  347. package/dist/esm/PaginationDataTestID.js.map +0 -7
  348. package/dist/esm/parts/DSPageNextButton.js +0 -47
  349. package/dist/esm/parts/DSPageNextButton.js.map +0 -7
  350. package/dist/esm/parts/DSPagePrevButton.js +0 -47
  351. package/dist/esm/parts/DSPagePrevButton.js.map +0 -7
  352. package/dist/esm/parts/DSPaginationContainer.js +0 -31
  353. package/dist/esm/parts/DSPaginationContainer.js.map +0 -7
  354. package/dist/esm/parts/DSPaginator/createPaginatorHeader.js +0 -19
  355. package/dist/esm/parts/DSPaginator/createPaginatorHeader.js.map +0 -7
  356. package/dist/esm/parts/DSPaginator/getOptions.js.map +0 -7
  357. package/dist/esm/parts/DSPaginator/usePaginator.js +0 -59
  358. package/dist/esm/parts/DSPaginator/usePaginator.js.map +0 -7
  359. package/dist/esm/parts/DSPerPageSelector/usePerPageSelector.js +0 -40
  360. package/dist/esm/parts/DSPerPageSelector/usePerPageSelector.js.map +0 -7
  361. package/dist/esm/props.js +0 -55
  362. package/dist/esm/props.js.map +0 -7
  363. package/dist/esm/styled.js +0 -92
  364. package/dist/esm/styled.js.map +0 -7
  365. package/dist/esm/typescript-testing/typescript-page-next-button-valid.js.map +0 -7
  366. package/dist/esm/typescript-testing/typescript-page-prev-button-valid.js.map +0 -7
  367. package/dist/esm/typescript-testing/typescript-paginator-valid.js.map +0 -7
  368. package/dist/esm/typescript-testing/typescript-per-page-selector-valid.js.map +0 -7
  369. package/dist/types/DSPaginationDefinitions.d.ts +0 -12
  370. package/dist/types/PaginationDataTestID.d.ts +0 -9
  371. package/dist/types/parts/DSPageNextButton.d.ts +0 -4
  372. package/dist/types/parts/DSPagePrevButton.d.ts +0 -4
  373. package/dist/types/parts/DSPaginationContainer.d.ts +0 -4
  374. package/dist/types/parts/DSPaginator/createPaginatorHeader.d.ts +0 -6
  375. package/dist/types/parts/DSPaginator/usePaginator.d.ts +0 -381
  376. package/dist/types/parts/DSPerPageSelector/usePerPageSelector.d.ts +0 -377
  377. package/dist/types/props.d.ts +0 -20
  378. package/dist/types/styled.d.ts +0 -7
  379. /package/dist/cjs/parts/DSPaginator/{usePaginationSearch.js → config/usePaginationSearch.js} +0 -0
  380. /package/dist/cjs/parts/DSPerPageSelector/{getOptions.js → config/getOptions.js} +0 -0
  381. /package/dist/cjs/parts/{DSPaginator → shared}/useOnElementOnResize.js +0 -0
  382. /package/dist/esm/parts/DSPaginator/{usePaginationSearch.js → config/usePaginationSearch.js} +0 -0
  383. /package/dist/esm/parts/DSPerPageSelector/{getOptions.js → config/getOptions.js} +0 -0
  384. /package/dist/esm/parts/{DSPaginator → shared}/useOnElementOnResize.js +0 -0
  385. /package/dist/types/{Pagination.d.ts → DSPagination.d.ts} +0 -0
  386. /package/dist/types/{typescript-testing/typescript-page-next-button-valid.d.ts → parts/DSPageNextButton/tests/DSPageNextButton.a11y.test.d.ts} +0 -0
  387. /package/dist/types/{typescript-testing/typescript-page-prev-button-valid.d.ts → parts/DSPageNextButton/tests/DSPageNextButton.callbacks.test.d.ts} +0 -0
  388. /package/dist/types/{typescript-testing/typescript-paginator-valid.d.ts → parts/DSPageNextButton/tests/DSPageNextButton.data-testid.test.d.ts} +0 -0
  389. /package/dist/types/{typescript-testing/typescript-per-page-selector-valid.d.ts → parts/DSPageNextButton/tests/DSPageNextButton.export.test.d.ts} +0 -0
  390. /package/dist/types/parts/DSPaginator/{usePaginationSearch.d.ts → config/usePaginationSearch.d.ts} +0 -0
  391. /package/dist/types/parts/DSPerPageSelector/{getOptions.d.ts → config/getOptions.d.ts} +0 -0
  392. /package/dist/types/parts/{DSPaginator → shared}/useOnElementOnResize.d.ts +0 -0
@@ -71,4 +71,4 @@ const ExampleUsageComponent = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)
71
71
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSPagePrevButton, { ...testDefinitionAsConst }),
72
72
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSPagePrevButton, { canPreviousPage: true, onPreviousPage: () => null })
73
73
  ] });
74
- //# sourceMappingURL=typescript-page-prev-button-valid.js.map
74
+ //# sourceMappingURL=typescript-testing.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/parts/DSPagePrevButton/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 { DSPagePrevButton, type DSPagePrevButtonT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSPagePrevButtonT.Props;\ntype ComponentPropsInternals = DSPagePrevButtonT.InternalProps;\ntype ComponentPropsDefaultProps = DSPagePrevButtonT.DefaultProps;\ntype ComponentPropsOptionalProps = DSPagePrevButtonT.OptionalProps;\ntype ComponentPropsRequiredProps = DSPagePrevButtonT.RequiredProps;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {};\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 canPreviousPage: false,\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 canPreviousPage: true,\n onPreviousPage: () => null,\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 canPreviousPage: true,\n onPreviousPage: () => null,\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 canPreviousPage: true,\n onPreviousPage: () => null,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n canPreviousPage: true,\n onPreviousPage: () => null,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <DSPagePrevButton {...testExplicitDefinition} />\n <DSPagePrevButton {...testInferedTypeCompatibility} />\n <DSPagePrevButton {...testDefinitionAsConst} />\n {/* works with inline values */}\n <DSPagePrevButton canPreviousPage onPreviousPage={() => null} />\n </>\n);\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACoErB;AAnEF,eAAyD;AASzD,MAAM,oBAAiD,CAAC;AAExD,MAAM,oBAAiD,CAAC;AAIxD,MAAM,sBAA2D;AAAA,EAC/D,iBAAiB;AACnB;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,iBAAiB;AAAA,EACjB,gBAAgB,MAAM;AACxB;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,iBAAiB;AAAA,EACjB,gBAAgB,MAAM;AACxB;AAGA,MAAM,+BAA+B;AAAA,EACnC,iBAAiB;AAAA,EACjB,gBAAgB,MAAM;AACxB;AAEA,MAAM,wBAAwB;AAAA,EAC5B,iBAAiB;AAAA,EACjB,gBAAgB,MAAM;AACxB;AAEA,MAAM,wBAAwB,MAC5B,4EAEE;AAAA,8CAAC,6BAAkB,GAAG,wBAAwB;AAAA,EAC9C,4CAAC,6BAAkB,GAAG,8BAA8B;AAAA,EACpD,4CAAC,6BAAkB,GAAG,uBAAuB;AAAA,EAE7C,4CAAC,6BAAiB,iBAAe,MAAC,gBAAgB,MAAM,MAAM;AAAA,GAChE;",
6
+ "names": []
7
+ }
@@ -35,27 +35,41 @@ module.exports = __toCommonJS(DSPaginationContainer_exports);
35
35
  var React = __toESM(require("react"));
36
36
  var import_jsx_runtime = require("react/jsx-runtime");
37
37
  var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
38
- var import_PaginationDataTestID = require("../PaginationDataTestID.js");
39
- var import_styled = require("../styled.js");
40
- var import_react_desc_prop_types = require("../react-desc-prop-types.js");
41
- var import_DSPaginationDefinitions = require("../DSPaginationDefinitions.js");
38
+ var import_ds_system = require("@elliemae/ds-system");
39
+ var import_ds_grid = require("@elliemae/ds-grid");
40
+ var import_react_desc_prop_types = require("./react-desc-prop-types.js");
41
+ var import_usePaginationContainer = require("./config/usePaginationContainer.js");
42
+ var import_constants = require("./constants/index.js");
43
+ const StyledPaginationContainer = (0, import_ds_system.styled)(import_ds_grid.Grid, { name: import_constants.DSPaginationName, slot: import_constants.PAGINATION_CONTAINER_SLOTS.ROOT })`
44
+ min-height: 42px;
45
+ max-width: 100%;
46
+ align-items: center;
47
+ justify-content: center;
48
+ box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.5);
49
+ position: relative;
50
+ ${import_ds_system.xStyledCommonProps}
51
+ `;
52
+ const StyledPaginationWrapper = (0, import_ds_system.styled)("div", { name: import_constants.DSPaginationName, slot: import_constants.PAGINATION_CONTAINER_SLOTS.WRAPPER })`
53
+ display: grid;
54
+ grid-auto-flow: column;
55
+ justify-content: center;
56
+ align-items: center;
57
+ `;
42
58
  const DSPaginationContainer = (props) => {
43
- const globalAttributes = (0, import_ds_props_helpers.useGetGlobalAttributes)(props);
44
- const xstyledProps = (0, import_ds_props_helpers.useGetXstyledProps)(props);
45
- const ownerPropsConfig = (0, import_ds_props_helpers.useOwnerProps)(props);
59
+ const { xstyledProps, globalAttributes, ownerPropsConfig } = (0, import_usePaginationContainer.usePaginationContainer)(props);
46
60
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
47
- import_styled.StyledPaginationContainer,
61
+ StyledPaginationContainer,
48
62
  {
49
- "data-testid": import_PaginationDataTestID.PAGINATION_DATA_TESTID.CONTAINER,
63
+ "data-testid": import_constants.PAGINATION_CONTAINER_DATA_TESTID.ROOT,
50
64
  ...globalAttributes,
51
65
  ...xstyledProps,
52
66
  ...ownerPropsConfig,
53
67
  cols: ["minmax(auto, 80%)"],
54
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledPaginationWrapper, { ...ownerPropsConfig, children: props.children })
68
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledPaginationWrapper, { ...ownerPropsConfig, children: props.children })
55
69
  }
56
70
  );
57
71
  };
58
- DSPaginationContainer.displayName = import_DSPaginationDefinitions.PaginationContainerName;
59
- const DSPaginationContainerWithSchema = (0, import_ds_props_helpers.describe)(DSPaginationContainer).description("Per Page Selector");
72
+ DSPaginationContainer.displayName = import_constants.DSPaginationContainerName;
73
+ const DSPaginationContainerWithSchema = (0, import_ds_props_helpers.describe)(DSPaginationContainer);
60
74
  DSPaginationContainerWithSchema.propTypes = import_react_desc_prop_types.DSPaginationContainerPropTypesSchema;
61
75
  //# sourceMappingURL=DSPaginationContainer.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/parts/DSPaginationContainer/DSPaginationContainer.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { describe, type XstyledProps } from '@elliemae/ds-props-helpers';\nimport { styled, xStyledCommonProps } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { type DSPaginationContainerT, DSPaginationContainerPropTypesSchema } from './react-desc-prop-types.js';\nimport { usePaginationContainer } from './config/usePaginationContainer.js';\nimport {\n DSPaginationContainerName,\n DSPaginationName,\n PAGINATION_CONTAINER_DATA_TESTID,\n PAGINATION_CONTAINER_SLOTS,\n} from './constants/index.js';\n\nconst StyledPaginationContainer = styled(Grid, { name: DSPaginationName, slot: PAGINATION_CONTAINER_SLOTS.ROOT })<\n React.ComponentProps<typeof Grid> & XstyledProps\n>`\n min-height: 42px;\n max-width: 100%;\n align-items: center;\n justify-content: center;\n box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.5);\n position: relative;\n ${xStyledCommonProps}\n`;\n\nconst StyledPaginationWrapper = styled('div', { name: DSPaginationName, slot: PAGINATION_CONTAINER_SLOTS.WRAPPER })`\n display: grid;\n grid-auto-flow: column;\n justify-content: center;\n align-items: center;\n`;\n\nconst DSPaginationContainer: React.ComponentType<DSPaginationContainerT.Props> = (props) => {\n const { xstyledProps, globalAttributes, ownerPropsConfig } = usePaginationContainer(props);\n\n return (\n <StyledPaginationContainer\n data-testid={PAGINATION_CONTAINER_DATA_TESTID.ROOT}\n {...globalAttributes}\n {...xstyledProps}\n {...ownerPropsConfig}\n cols={['minmax(auto, 80%)']}\n >\n <StyledPaginationWrapper {...ownerPropsConfig}>{props.children}</StyledPaginationWrapper>\n </StyledPaginationContainer>\n );\n};\n\nDSPaginationContainer.displayName = DSPaginationContainerName;\nconst DSPaginationContainerWithSchema = describe(DSPaginationContainer);\nDSPaginationContainerWithSchema.propTypes = DSPaginationContainerPropTypesSchema;\n\nexport { DSPaginationContainer, DSPaginationContainerWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD2CjB;AA1CN,8BAA4C;AAC5C,uBAA2C;AAC3C,qBAAqB;AACrB,mCAAkF;AAClF,oCAAuC;AACvC,uBAKO;AAEP,MAAM,gCAA4B,yBAAO,qBAAM,EAAE,MAAM,mCAAkB,MAAM,4CAA2B,KAAK,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAS5G,mCAAkB;AAAA;AAGtB,MAAM,8BAA0B,yBAAO,OAAO,EAAE,MAAM,mCAAkB,MAAM,4CAA2B,QAAQ,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAOlH,MAAM,wBAA2E,CAAC,UAAU;AAC1F,QAAM,EAAE,cAAc,kBAAkB,iBAAiB,QAAI,sDAAuB,KAAK;AAEzF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa,kDAAiC;AAAA,MAC7C,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACJ,MAAM,CAAC,mBAAmB;AAAA,MAE1B,sDAAC,2BAAyB,GAAG,kBAAmB,gBAAM,UAAS;AAAA;AAAA,EACjE;AAEJ;AAEA,sBAAsB,cAAc;AACpC,MAAM,sCAAkC,kCAAS,qBAAqB;AACtE,gCAAgC,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,60 @@
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 usePaginationContainer_exports = {};
30
+ __export(usePaginationContainer_exports, {
31
+ usePaginationContainer: () => usePaginationContainer
32
+ });
33
+ module.exports = __toCommonJS(usePaginationContainer_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
+ var import_react = __toESM(require("react"));
37
+ var import_react_desc_prop_types = require("../react-desc-prop-types.js");
38
+ var import_useValidateProps = require("./useValidateProps.js");
39
+ const usePaginationContainer = (propsFromUser) => {
40
+ const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(
41
+ propsFromUser,
42
+ import_react_desc_prop_types.defaultProps
43
+ );
44
+ (0, import_useValidateProps.useValidateProps)(propsWithDefault, import_react_desc_prop_types.DSPaginationContainerPropTypesSchema);
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
+ return import_react.default.useMemo(
51
+ () => ({
52
+ propsWithDefault,
53
+ xstyledProps,
54
+ globalAttributes,
55
+ ownerPropsConfig
56
+ }),
57
+ [propsWithDefault, xstyledProps, globalAttributes, ownerPropsConfig]
58
+ );
59
+ };
60
+ //# sourceMappingURL=usePaginationContainer.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/parts/DSPaginationContainer/config/usePaginationContainer.ts", "../../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n useOwnerProps,\n} from '@elliemae/ds-props-helpers';\nimport React from 'react';\n\nimport type { DSGridT } from '@elliemae/ds-grid';\nimport {\n type DSPaginationContainerT,\n DSPaginationContainerPropTypesSchema,\n defaultProps,\n} from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport const usePaginationContainer = (propsFromUser: DSPaginationContainerT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSPaginationContainerT.InternalProps>(\n propsFromUser,\n defaultProps,\n );\n useValidateProps(propsWithDefault, DSPaginationContainerPropTypesSchema);\n // =============================================================================\n // XSTYLED PROPS\n // =============================================================================\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n // =============================================================================\n // GLOBAL ATTRIBUTES\n // =============================================================================\n const globalAttributes = useGetGlobalAttributes<DSPaginationContainerT.InternalProps, HTMLDivElement, DSGridT.Props>(\n propsWithDefault,\n );\n // =============================================================================\n // OWNER PROPS\n // =============================================================================\n const ownerPropsConfig = useOwnerProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n // custom code goes here, this is an example\n // const instanceUid = React.useMemo(() => `ds-pagination-container-${uid(5)}`, []);\n\n // =============================================================================\n // HELPERS HOOKS CONFIGS\n // =============================================================================\n // const eventHandlers = useEventHandlers({ propsWithDefault, instanceUid }); // <-- complex logic should be made atomics this way\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n xstyledProps,\n globalAttributes,\n ownerPropsConfig,\n }),\n [propsWithDefault, xstyledProps, globalAttributes, ownerPropsConfig],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAKO;AACP,mBAAkB;AAGlB,mCAIO;AACP,8BAAiC;AAE1B,MAAM,yBAAyB,CAAC,kBAAgD;AAIrF,QAAM,uBAAmB;AAAA,IACvB;AAAA,IACA;AAAA,EACF;AACA,gDAAiB,kBAAkB,iEAAoC;AAIvE,QAAM,mBAAe,4CAAmB,gBAAgB;AAIxD,QAAM,uBAAmB;AAAA,IACvB;AAAA,EACF;AAIA,QAAM,uBAAmB,uCAAc,gBAAgB;AAYvD,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,kBAAkB,cAAc,kBAAkB,gBAAgB;AAAA,EACrE;AACF;",
6
+ "names": ["React"]
7
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var useValidateProps_exports = {};
30
+ __export(useValidateProps_exports, {
31
+ useValidateProps: () => useValidateProps
32
+ });
33
+ module.exports = __toCommonJS(useValidateProps_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
+ var import_constants = require("../constants/index.js");
37
+ const useValidateProps = (props, propTypes) => {
38
+ (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(props, propTypes, import_constants.DSPaginationContainerName);
39
+ };
40
+ //# sourceMappingURL=useValidateProps.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/parts/DSPaginationContainer/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 DSPaginationContainerT } from '../react-desc-prop-types.js';\nimport { DSPaginationContainerName } from '../constants/index.js';\n\nexport const useValidateProps = (\n props: DSPaginationContainerT.InternalProps,\n propTypes: ValidationMap<DSPaginationContainerT.Props>,\n): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSPaginationContainerName);\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,50 @@
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
+ DSPaginationContainerName: () => DSPaginationContainerName,
32
+ DSPaginationName: () => import_constants.DSPaginationName,
33
+ PAGINATION_CONTAINER_DATA_TESTID: () => PAGINATION_CONTAINER_DATA_TESTID,
34
+ PAGINATION_CONTAINER_SLOTS: () => PAGINATION_CONTAINER_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 DSPaginationContainerName = "DSPaginationContainer";
41
+ const PAGINATION_CONTAINER_SLOTS = {
42
+ ROOT: "root",
43
+ WRAPPER: "wrapper"
44
+ };
45
+ const PAGINATION_CONTAINER_DATA_TESTID = {
46
+ ...(0, import_ds_system.slotObjectToDataTestIds)(import_constants.DSPaginationName, PAGINATION_CONTAINER_SLOTS),
47
+ ROOT: "data-table-pagination-container",
48
+ WRAPPER: "ds-pagination-wrapper"
49
+ };
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/parts/DSPaginationContainer/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 DSPaginationContainerName = 'DSPaginationContainer';\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_CONTAINER_SLOTS = {\n ROOT: 'root',\n WRAPPER: 'wrapper',\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_CONTAINER_DATA_TESTID = {\n ...slotObjectToDataTestIds(DSPaginationName, PAGINATION_CONTAINER_SLOTS),\n ROOT: 'data-table-pagination-container',\n WRAPPER: 'ds-pagination-wrapper',\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AACxC,uBAAiC;AAG1B,MAAM,4BAA4B;AAGlC,MAAM,6BAA6B;AAAA,EACxC,MAAM;AAAA,EACN,SAAS;AACX;AAGO,MAAM,mCAAmC;AAAA,EAC9C,OAAG,0CAAwB,mCAAkB,0BAA0B;AAAA,EACvE,MAAM;AAAA,EACN,SAAS;AACX;",
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 DSPaginationContainer_exports = {};
30
+ __export(DSPaginationContainer_exports, {
31
+ DSPaginationContainer: () => import_DSPaginationContainer.DSPaginationContainer,
32
+ DSPaginationContainerName: () => import_constants.DSPaginationContainerName,
33
+ DSPaginationContainerWithSchema: () => import_DSPaginationContainer.DSPaginationContainerWithSchema,
34
+ PAGINATION_CONTAINER_DATA_TESTID: () => import_constants.PAGINATION_CONTAINER_DATA_TESTID,
35
+ PAGINATION_CONTAINER_SLOTS: () => import_constants.PAGINATION_CONTAINER_SLOTS
36
+ });
37
+ module.exports = __toCommonJS(DSPaginationContainer_exports);
38
+ var React = __toESM(require("react"));
39
+ var import_DSPaginationContainer = require("./DSPaginationContainer.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/DSPaginationContainer/index.ts", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export { DSPaginationContainer, DSPaginationContainerWithSchema } from './DSPaginationContainer.js';\nexport {\n DSPaginationContainerName,\n PAGINATION_CONTAINER_DATA_TESTID,\n PAGINATION_CONTAINER_SLOTS,\n} from './constants/index.js';\nexport type { DSPaginationContainerT } 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,48 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var react_desc_prop_types_exports = {};
30
+ __export(react_desc_prop_types_exports, {
31
+ DSPaginationContainerPropTypes: () => DSPaginationContainerPropTypes,
32
+ DSPaginationContainerPropTypesSchema: () => DSPaginationContainerPropTypesSchema,
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 DSPaginationContainerPropTypes = {
41
+ // These use parent component name because they were already defined and working before.
42
+ // Changing them now would be a breaking change for consumers.
43
+ ...(0, import_ds_props_helpers.getPropsPerSlotPropTypes)(import_constants.DSPaginationName, import_constants.PAGINATION_CONTAINER_SLOTS),
44
+ ...import_ds_props_helpers.globalAttributesPropTypes,
45
+ ...import_ds_props_helpers.xstyledPropTypes
46
+ };
47
+ const DSPaginationContainerPropTypesSchema = DSPaginationContainerPropTypes;
48
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/parts/DSPaginationContainer/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_CONTAINER_SLOTS } from './constants/index.js';\n\nexport declare namespace DSPaginationContainerT {\n export type SlotFunctionArguments = {\n dsPaginationRoot: () => object;\n dsPaginationWrapper: () => object;\n };\n export interface RequiredProps {}\n\n export interface DefaultProps {}\n\n export interface OptionalProps\n // These use parent component name because they were already defined and working before.\n // Changing them now would be a breaking change for consumers.\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSPaginationName, typeof PAGINATION_CONTAINER_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: DSPaginationContainerT.DefaultProps = {};\n\nexport const DSPaginationContainerPropTypes: DSPropTypesSchema<DSPaginationContainerT.Props> = {\n // These use parent component name because they were already defined and working before.\n // Changing them now would be a breaking change for consumers.\n ...getPropsPerSlotPropTypes(DSPaginationName, PAGINATION_CONTAINER_SLOTS),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n};\n\nexport const DSPaginationContainerPropTypesSchema =\n DSPaginationContainerPropTypes as unknown as ValidationMap<DSPaginationContainerT.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;AA8BtD,MAAM,eAAoD,CAAC;AAE3D,MAAM,iCAAkF;AAAA;AAAA;AAAA,EAG7F,OAAG,kDAAyB,mCAAkB,2CAA0B;AAAA,EACxE,GAAG;AAAA,EACH,GAAG;AACL;AAEO,MAAM,uCACX;",
6
+ "names": []
7
+ }
@@ -0,0 +1,34 @@
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
+ dsPaginationRoot: { "aria-label": "just a typescript test" },
27
+ dsPaginationWrapper: { "aria-label": "just a typescript test" }
28
+ };
29
+ const SlotPropsAsFunctions = {
30
+ dsPaginationRoot: () => ({ "aria-label": "just a typescript test" }),
31
+ dsPaginationWrapper: () => ({ "aria-label": "just a typescript test" })
32
+ };
33
+ const EnsureAllSlotsExistInSlotFunctionArguments = SlotPropsAsFunctions;
34
+ //# sourceMappingURL=slot-props.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/parts/DSPaginationContainer/typescript-testing/slot-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';\n\nimport type { DSPaginationContainerT } from '../react-desc-prop-types.js';\nimport type { DSPaginationName, PaginationSlots } from '../../../constants/index.js';\n\nconst SlotPropsAsObj: Partial<DSPaginationContainerT.Props> = {\n dsPaginationRoot: { 'aria-label': 'just a typescript test' },\n dsPaginationWrapper: { 'aria-label': 'just a typescript test' },\n};\nconst SlotPropsAsFunctions: DSPaginationContainerT.SlotFunctionArguments = {\n dsPaginationRoot: () => ({ 'aria-label': 'just a typescript test' }),\n dsPaginationWrapper: () => ({ 'aria-label': 'just a typescript test' }),\n};\nconst EnsureAllSlotsExistInSlotFunctionArguments: Required<\n TypescriptHelpersT.PropsForSlots<typeof DSPaginationName, typeof PaginationSlots>\n> = SlotPropsAsFunctions;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACOvB,MAAM,iBAAwD;AAAA,EAC5D,kBAAkB,EAAE,cAAc,yBAAyB;AAAA,EAC3D,qBAAqB,EAAE,cAAc,yBAAyB;AAChE;AACA,MAAM,uBAAqE;AAAA,EACzE,kBAAkB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAClE,qBAAqB,OAAO,EAAE,cAAc,yBAAyB;AACvE;AACA,MAAM,6CAEF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,68 @@
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: () => DSPaginationSeparator,
32
+ DSPaginationSeparatorWithSchema: () => DSPaginationSeparatorWithSchema,
33
+ StyledDSPaginationSeparator: () => StyledDSPaginationSeparator
34
+ });
35
+ module.exports = __toCommonJS(DSPaginationSeparator_exports);
36
+ var React = __toESM(require("react"));
37
+ var import_jsx_runtime = require("react/jsx-runtime");
38
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
39
+ var import_ds_system = require("@elliemae/ds-system");
40
+ var import_ds_grid = require("@elliemae/ds-grid");
41
+ var import_react_desc_prop_types = require("./react-desc-prop-types.js");
42
+ var import_usePaginationSeparator = require("./config/usePaginationSeparator.js");
43
+ var import_constants = require("./constants/index.js");
44
+ const StyledDSPaginationSeparator = (0, import_ds_system.styled)(import_ds_grid.Grid, {
45
+ name: import_constants.DSPaginationName,
46
+ slot: import_constants.PAGINATION_SEPARATOR_SLOTS.SEPARATOR
47
+ })`
48
+ background-color: ${(props) => props.theme.colors.neutral[300]};
49
+ width: 1px;
50
+ height: 30px;
51
+ ${import_ds_system.xStyledCommonProps}
52
+ `;
53
+ const DSPaginationSeparator = (props) => {
54
+ const { xstyledProps, globalAttributes, ownerPropsConfig } = (0, import_usePaginationSeparator.usePaginationSeparator)(props);
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
56
+ StyledDSPaginationSeparator,
57
+ {
58
+ "data-testid": import_constants.PAGINATION_SEPARATOR_DATA_TESTID.SEPARATOR,
59
+ ...globalAttributes,
60
+ ...xstyledProps,
61
+ ...ownerPropsConfig
62
+ }
63
+ );
64
+ };
65
+ DSPaginationSeparator.displayName = import_constants.DSPaginationSeparatorName;
66
+ const DSPaginationSeparatorWithSchema = (0, import_ds_props_helpers.describe)(DSPaginationSeparator);
67
+ DSPaginationSeparatorWithSchema.propTypes = import_react_desc_prop_types.DSPaginationSeparatorPropTypesSchema;
68
+ //# sourceMappingURL=DSPaginationSeparator.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/parts/DSPaginationSeparator/DSPaginationSeparator.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { describe, type XstyledProps } from '@elliemae/ds-props-helpers';\nimport { styled, xStyledCommonProps } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { type DSPaginationSeparatorT, DSPaginationSeparatorPropTypesSchema } from './react-desc-prop-types.js';\nimport { usePaginationSeparator } from './config/usePaginationSeparator.js';\nimport {\n PAGINATION_SEPARATOR_SLOTS,\n DSPaginationName,\n DSPaginationSeparatorName,\n PAGINATION_SEPARATOR_DATA_TESTID,\n} from './constants/index.js';\n\nexport const StyledDSPaginationSeparator = styled(Grid, {\n name: DSPaginationName,\n slot: PAGINATION_SEPARATOR_SLOTS.SEPARATOR,\n})<React.ComponentProps<typeof Grid> & XstyledProps>`\n background-color: ${(props) => props.theme.colors.neutral[300]};\n width: 1px;\n height: 30px;\n ${xStyledCommonProps}\n`;\n\nconst DSPaginationSeparator: React.ComponentType<DSPaginationSeparatorT.Props> = (props) => {\n const { xstyledProps, globalAttributes, ownerPropsConfig } = usePaginationSeparator(props);\n\n return (\n <StyledDSPaginationSeparator\n data-testid={PAGINATION_SEPARATOR_DATA_TESTID.SEPARATOR}\n {...globalAttributes}\n {...xstyledProps}\n {...ownerPropsConfig}\n />\n );\n};\n\nDSPaginationSeparator.displayName = DSPaginationSeparatorName;\nconst DSPaginationSeparatorWithSchema = describe(DSPaginationSeparator);\nDSPaginationSeparatorWithSchema.propTypes = DSPaginationSeparatorPropTypesSchema;\n\nexport { DSPaginationSeparator, DSPaginationSeparatorWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD2BnB;AA1BJ,8BAA4C;AAC5C,uBAA2C;AAC3C,qBAAqB;AACrB,mCAAkF;AAClF,oCAAuC;AACvC,uBAKO;AAEA,MAAM,kCAA8B,yBAAO,qBAAM;AAAA,EACtD,MAAM;AAAA,EACN,MAAM,4CAA2B;AACnC,CAAC;AAAA,sBACqB,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAAA;AAAA,IAG5D,mCAAkB;AAAA;AAGtB,MAAM,wBAA2E,CAAC,UAAU;AAC1F,QAAM,EAAE,cAAc,kBAAkB,iBAAiB,QAAI,sDAAuB,KAAK;AAEzF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa,kDAAiC;AAAA,MAC7C,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,sBAAsB,cAAc;AACpC,MAAM,sCAAkC,kCAAS,qBAAqB;AACtE,gCAAgC,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,60 @@
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 usePaginationSeparator_exports = {};
30
+ __export(usePaginationSeparator_exports, {
31
+ usePaginationSeparator: () => usePaginationSeparator
32
+ });
33
+ module.exports = __toCommonJS(usePaginationSeparator_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_react = __toESM(require("react"));
36
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
37
+ var import_react_desc_prop_types = require("../react-desc-prop-types.js");
38
+ var import_useValidateProps = require("./useValidateProps.js");
39
+ const usePaginationSeparator = (propsFromUser) => {
40
+ const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(
41
+ propsFromUser,
42
+ import_react_desc_prop_types.defaultProps
43
+ );
44
+ (0, import_useValidateProps.useValidateProps)(propsWithDefault, import_react_desc_prop_types.DSPaginationSeparatorPropTypesSchema);
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
+ return import_react.default.useMemo(
51
+ () => ({
52
+ propsWithDefault,
53
+ xstyledProps,
54
+ globalAttributes,
55
+ ownerPropsConfig
56
+ }),
57
+ [propsWithDefault, xstyledProps, globalAttributes, ownerPropsConfig]
58
+ );
59
+ };
60
+ //# sourceMappingURL=usePaginationSeparator.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/parts/DSPaginationSeparator/config/usePaginationSeparator.ts", "../../../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n useOwnerProps,\n} from '@elliemae/ds-props-helpers';\n\nimport type { DSGridT } from '@elliemae/ds-grid';\nimport {\n type DSPaginationSeparatorT,\n DSPaginationSeparatorPropTypesSchema,\n defaultProps,\n} from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport const usePaginationSeparator = (propsFromUser: DSPaginationSeparatorT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSPaginationSeparatorT.InternalProps>(\n propsFromUser,\n defaultProps,\n );\n useValidateProps(propsWithDefault, DSPaginationSeparatorPropTypesSchema);\n // =============================================================================\n // XSTYLED PROPS\n // =============================================================================\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n // =============================================================================\n // GLOBAL ATTRIBUTES\n // =============================================================================\n const globalAttributes = useGetGlobalAttributes<DSPaginationSeparatorT.InternalProps, HTMLDivElement, DSGridT.Props>(\n propsWithDefault,\n );\n // =============================================================================\n // OWNER PROPS\n // =============================================================================\n const ownerPropsConfig = useOwnerProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n // custom code goes here, this is an example\n // const instanceUid = React.useMemo(() => `ds-pagination-separator-${uid(5)}`, []);\n\n // =============================================================================\n // HELPERS HOOKS CONFIGS\n // =============================================================================\n // const eventHandlers = useEventHandlers({ propsWithDefault, instanceUid }); // <-- complex logic should be made atomics this way\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n xstyledProps,\n globalAttributes,\n ownerPropsConfig,\n }),\n [propsWithDefault, xstyledProps, globalAttributes, ownerPropsConfig],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,8BAKO;AAGP,mCAIO;AACP,8BAAiC;AAE1B,MAAM,yBAAyB,CAAC,kBAAgD;AAIrF,QAAM,uBAAmB;AAAA,IACvB;AAAA,IACA;AAAA,EACF;AACA,gDAAiB,kBAAkB,iEAAoC;AAIvE,QAAM,mBAAe,4CAAmB,gBAAgB;AAIxD,QAAM,uBAAmB;AAAA,IACvB;AAAA,EACF;AAIA,QAAM,uBAAmB,uCAAc,gBAAgB;AAYvD,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,kBAAkB,cAAc,kBAAkB,gBAAgB;AAAA,EACrE;AACF;",
6
+ "names": ["React"]
7
+ }