Commit ad81056
Load more component misc fixes (#740)
* feat(components): add LoadMore component for dynamic list expansion
Introduce LoadMore component to allow users to load additional items
into a list. This component includes a "Show More" button and an
optional count indicator. It supports a loading state and automatically
hides the button when all items are loaded. This addition enhances user
experience by providing a seamless way to view more content without
navigating away from the current page.
* refactor(stories): update LoadMore stories to use StoryObj for improved type safety and readability
fix(stories): correct story names to follow consistent naming convention
* style(types.ts): add semicolons to type definitions for consistency and readability
* refactor(LoadMore.tsx, LoadMoreList.tsx): convert components from arrow functions to named functions for improved readability and consistency
fix(LoadMoreList.tsx): change key in list items from index to item value to ensure unique keys and prevent potential rendering issues
* style(loadMore): remove redundant comments for cleaner code
Remove unnecessary comments in LoadMoreList.tsx and LoadMore.stories.tsx
to improve code readability and maintainability.
* feat(loadMore): add "Show Less" button functionality to LoadMore component
Add a "Show Less" button to allow users to reduce the number of displayed
items. This enhances user control over the list view, especially when
dealing with large datasets. Update stories to reflect the new feature
and rename "WithoutCount" to "WithCount" for clarity.
* feat(loadMore): add "Show Less" button functionality to allow users to reduce items
docs(loadMore): update documentation to include "Show Less" button usage
style(PaginationAmount): adjust spacing in pagination result display for consistency
* Update src/components/loadMore/LoadMore.stories.tsx
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update src/components/loadMore/LoadMore.stories.tsx
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* chore(package.json): bump version from 10.4.6 to 10.4.8 to prepare for new release
* test(ExtendedPagination.spec.tsx): remove space in result range display to ensure consistency in text rendering
* style(pagination): add space after dash in pagination display
Ensure consistent spacing in pagination text for better readability.
* chore(package.json): bump version from 10.4.8 to 10.5.0 to reflect new features or improvements
* test(ExtendedPagination.spec.tsx): fix spacing in expected text for consistency in test assertions
* style(vscode): change eslint fixAll setting to "explicit" for clarity
fix(ExtendedPagination.spec.tsx): add space after hyphen in text assertions for consistency
style(LoadMore.tsx): change height to min-height for better layout flexibility
feat(LoadMore.tsx): add inline styles and icons to buttons for improved UI
feat(PaginationAmount.tsx): add optional style prop for custom styling of pagination results
* restore vscode eslint setting
* chore(package.json): bump version from 10.5.0 to 10.5.1 for patch release
* test(extendedPagination.spec.tsx): add assertions to verify elements are in the document to improve test reliability
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>1 parent 16e12b8 commit ad81056
File tree
4 files changed
+36
-12
lines changed- src/components
- extendedPagination
- loadMore
- paginationHelpers
4 files changed
+36
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
47 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
52 | | - | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
57 | | - | |
| 64 | + | |
| 65 | + | |
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
| |||
182 | 190 | | |
183 | 191 | | |
184 | 192 | | |
185 | | - | |
| 193 | + | |
186 | 194 | | |
187 | 195 | | |
188 | 196 | | |
| |||
202 | 210 | | |
203 | 211 | | |
204 | 212 | | |
205 | | - | |
| 213 | + | |
206 | 214 | | |
207 | 215 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| 49 | + | |
| 50 | + | |
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
| |||
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
| 64 | + | |
| 65 | + | |
57 | 66 | | |
58 | 67 | | |
59 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
| |||
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
24 | | - | |
25 | | - | |
| 31 | + | |
| 32 | + | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
0 commit comments