Commit graph

7 commits

Author SHA1 Message Date
Tudor Gradinaru
ef0af0e41c
fix(pagination): remove unnecessary ellipsis when count equals visiblePages + 2 (#2624)
* 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>
2025-11-24 09:17:41 +01:00
selcen.sonmez
a0d334dc54
feat: add Turkish (tr) translations to form-core, input-datepicker & pagination (#2516)
* feat(input-datepicker): add Turkish translations

* chore: add changeset for Turkish translation

* feat(input-datepicker): add Turkish translations

* chore: consolidate all Turkish translations into a single changeset
2025-05-15 16:56:48 +02:00
Oleksii Kadurin
eac4312030
fix: announce current page for pagination (#2419)
fix: announce current page for pagination
2024-11-28 09:40:43 +01:00
Thijs Louisse
467ba6bf0b feat(@lion/ui): localize side effect free internally 2023-02-01 16:06:30 +01:00
Thomas Allmer
c1982965c3 feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00
Thomas Allmer
d938e464b4 chore: introduce a component src folder 2022-10-31 16:55:07 +01:00
Thomas Allmer
8114bae86f chore: rename ui/src to components 2022-10-31 16:55:07 +01:00