* fix(pagination): remove unnecessary ellipsis when count equals visiblePages + 1
Fixes#2589
- Changed condition from to
- This allows one extra page to be displayed without ellipsis (e.g., [1,2,3,4,5,6] instead of [1,2,3,4,5,'...',6])
- Added test case to verify ellipsis is not shown when count=6 and visiblePages=5
* Update packages/ui/components/pagination/src/LionPagination.js
Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>
* test: add additional ellipsis display tests
- Add test for count=7 (visiblePages + 2) without ellipsis
- Add test for count=8 (visiblePages + 3) with ellipsis
- Update condition to visiblePages + 2 to allow both count=6 and count=7 without ellipsis
---------
Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>