raster-foundry / blasterjs

React UI library designed and built by Azavea
https://raster-foundry-blaster.netlify.com
Other
6 stars 3 forks source link

Add Pagination component #218

Closed lederer closed 5 years ago

lederer commented 5 years ago

Overview

Adds a Pagination component. Requires currentPage, pageCount, and onPageChange props.

Checklist

Upgrade instructions

If there are any of the following in this PR, provide proper instructions on how to upgrade:

Demo

image

Notes

~Prev/next icons currently don't match first/last icons. Will be fixed in an upcoming icons pass.~

Testing Instructions

Closes #217

designmatty commented 5 years ago

I just realized using those icons in a public repo goes against the license for FA pro. We'll need to remove them from this repo.

I've whipped some icons together based on the arrow-left and arrow-right icons. Please replace with these and do a force push.

_arrow-icons.zip

lederer commented 5 years ago

Icons replaced. Thanks for crafting.

lederer commented 5 years ago

👍 Ready for another look.

lederer commented 5 years ago

Snuck in a drive-by typo fix in the Badge component.

lederer commented 5 years ago

Slipped in another drive-by fix, for a missing import in the Icon component.