Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Blue - v0.0.33

Compare
Choose a tag to compare
@ItsJonQ ItsJonQ released this 12 Oct 18:30
· 3162 commits to main since this release

New Features

Add InfiniteScroller component + enhance Scrollable

This update adds a new InfiniteScroller component that makes it easy to dynamically fetch/load/inject content (or do anything else!). It has a couple of handy callbacks to provide the user with control when the component is scrolled into position.

Example

<Scrollable>
  ...
  <InfiniteScroller onLoading={loadMoreContent} />
</Scrollable>

The Scrollable component has also been enhanced with a new onScroll callback.

Additional Updates

  • Adjust markup for Modal to better support Scrollable usage
  • Add scrollParent prop to InfiniteScroller to accept DOM elements
  • Create new Storybook for InfiniteScroller example (with Modal)

Other Updates

  • Remove yarn.lock (and add to gitignore)
  • Remove fetch dependency and polyfill. Blue doesn't use Fetch API.
  • Add prop-types-extra for DOM node checking

Resolves: #12

Maintenence

  • Rename Card className from c-card to c-Card

Resolves #66

Bug Fixes

The onSortEnd prop that uses the onSortEnd() method in the Sortable class is being overwritten by the onSortEnd prop in the rest object. A quick fix to pull out the onSortEnd property from the rest object.