Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Base Pagination #151

Merged
merged 15 commits into from
Feb 24, 2023
Merged

Base Pagination #151

merged 15 commits into from
Feb 24, 2023

Conversation

yishayhaz
Copy link
Contributor

@yishayhaz yishayhaz commented Feb 13, 2023

What is it?

  • Feature/enhancement
  • Bug
  • Docs/tests

Description

Created a base pagination component
fully functional component for pagination

In the future, I will make it look better, add functionality, etc.

#130 - Add Pagination Component, no dependencies were affected

Screenshots/Demo

image

Checklist:

  • My code follows the developer guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • Added new tests to cover the fix/functionality

yishayhaz and others added 3 commits February 13, 2023 23:15
base pagination component, it's fully working now, but it's not finished yet, I will add more
funcionallity & better design & code refactoring

Add Pagination component #130
feat(component & doc page): base pagination component
@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@yishayhaz
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

CLA.md Outdated Show resolved Hide resolved
Copy link
Contributor

@gioboa gioboa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution, it's good, there are only few things to change 🚀
I don't have strong opinion about the state, should stay inside or in the parent component (like in this implementation)

instead of implementing the code twice, wrap the headless in the daisy (not finished yet)
added a pagination for headless & daisy, changed approach & better ts

130
@yishayhaz
Copy link
Contributor Author

A different approach now.

HeadlessPagination Receives two additional props: 'RenderItem' and 'RenderDivider'.
DaisyPagination wraps HeadlessPagination, and passes RenderItem as DaisyButton

@yishayhaz
Copy link
Contributor Author

Must Add:

Support for RTL in arrow button & option to customize arrow buttons icons
currently the pagination is divided into 3 parts, the arrows, spacers, and 3 numbers in the middle. this number should be allowed to customize by a prop ''siblingCount" (mui for reference)

@gioboa
Copy link
Contributor

gioboa commented Feb 24, 2023

@all-contributors please add @yishayhaz for code

@allcontributors
Copy link
Contributor

@gioboa

I've put up a pull request to add @yishayhaz! 🎉

@gioboa gioboa merged commit 76aed0e into qwikifiers:main Feb 24, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Feb 24, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants