Skip to content

Minor Version - Library Bundling Changes

Compare
Choose a tag to compare
@leo95oliveira leo95oliveira released this 19 Oct 22:38
· 187 commits to main since this release
0caeaca

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"