Skip to content

Releases: code4rena-dev/components-library

Bug Fix - Contest Tile container height

19 Jan 17:16
1e878a6
Compare
Choose a tag to compare

This version includes changes to address the following issue: #33

Major Version - Icons + minor optimizations

15 Jan 16:37
658490d
Compare
Choose a tag to compare

This version adds support for icons commonly used in the main Code4rena website as well as some minor optimizations https://components-library-wine.vercel.app/

Bug Fix - fix logic for bot race indicator on ContestTile

08 Jan 19:41
cd2858a
Compare
Choose a tag to compare

Some public contests do not have bot races, so we use the presence of a bot race findings repo as a signal for whether or not the contest has a bot race.

Bug Fix - Container Queries

18 Dec 19:17
e000089
Compare
Choose a tag to compare

This version adds container query support for older browsers.

Currently, the contest tile uses container queries instead of media queries; while it is already widely supported at this point, this properly implements the container-query-polyfill to make sure that container queries work in older browsers that do not support it. This ensures that our component looks exactly as intended in older browsers.

Bug Fix - Stopping event propagation (ContestTile)

15 Dec 17:48
f1cb434
Compare
Choose a tag to compare

This version contains a bug fix to stop event propagation on click of anchors contained within the ContestTile.

This is important in case the ContestTile is wrapped in an anchor tag; in cases like these, anchor clicks were previously ignored for the preferred parent anchor.

Minor Version - Bug Bounty Option For Contest Tiles

15 Dec 05:12
e17ed7e
Compare
Choose a tag to compare

This version includes styling changes for the ContestTile as well as support for bug bounties.

Now, if a tile for contests is desired, contest data should be passed through the contestData prop.

If a bounty tile is desired, bounty information should be passed through the bountyData prop.

Major Version - Avatar Component + Optimizations

23 Nov 17:37
56a5056
Compare
Choose a tag to compare

This release includes a new Avatar component as well as some minor bug fixes and reduced bundle size.

Minor Version - Contest Tile component updates

01 Nov 20:18
f4699bf
Compare
Choose a tag to compare

This release adds two new variants to the Contest Tile component called COMPACT_LIGHT & COMPACT_DARK.

These compact cards have a simplified layout, displaying only contest title, price amount, contest type, and contest status:

Screen Shot 2023-11-01 at 4 20 31 PM

Patch - Fixes CSS bug in Card component

31 Oct 18:57
e7cfe15
Compare
Choose a tag to compare

This release includes a CSS bug fix for images in the Card component

Minor Version - Library Bundling Changes

19 Oct 22:38
0caeaca
Compare
Choose a tag to compare

This release includes changes to facilitate library imports and resolve typescript issues on applications importing the library's components and types.

Changes included:

  1. App bundling setup and code export structure (now importing components and types separately)
  2. Component import remains the same through named imports:
import { Button} from "@code4rena/components-library;
  1. Prop Type imports can now also be done through named imports:
import { ButtonSize, ButtonType, ButtonVariant } from "@code4rena/components-library/types"
  1. Styles import now has an updated import path:
/* In CSS/SCSS file: */
@import "@code4rena/components-library/styles"
// Or, in wrapping layout/page/component:
import "@code4rena/components-library/styles"