Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat(components): add card component #13

Merged
merged 14 commits into from
May 24, 2024
Merged

feat(components): add card component #13

merged 14 commits into from
May 24, 2024

Conversation

desmondinho
Copy link
Contributor

Description

Add card component to the library of components.

Closes #12

What's been done?

Added card and card related components with the following abilities:

Card

  • Set the radius of the card corners (e.g., none, medium)
  • Set the shadow (e.g., none, small)
  • Set the full-width state
  • Set the blurred state (backdrop)
  • Set CSS class names for each slot (e.g., card itself, card footer)

CardFooter

  • Set the blurred state (backdrop)

--

Introduced the concept of the components with slots. It means that you can style all the parts inside the component using the Classes parameter. For example, the LumexCard component has the following slots:

  1. Root: the root slot of the card, it is the main container.
  2. Header: the wrapper of the card header component.
  3. Body: the wrapper of the card body component.
  4. Footer: the wrapper of the card footer component.

Checklist

  • My code follows the project's coding style and guidelines.
  • I have included inline docs for my changes, where applicable.
  • I have added, updated or removed tests according to my changes.
  • All tests are passing.
  • There's an open issue for the PR that I am making.

@desmondinho desmondinho added ✨ Type: Enhancement New feature or request 📦 Scope: Components Improvements or additions to components labels May 24, 2024
@desmondinho desmondinho self-assigned this May 24, 2024
@desmondinho desmondinho linked an issue May 24, 2024 that may be closed by this pull request
1 task
Copy link

codecov bot commented May 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.54%. Comparing base (6106985) to head (e35473f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
+ Coverage   99.50%   99.54%   +0.04%     
==========================================
  Files          21       27       +6     
  Lines         598      654      +56     
  Branches       42       43       +1     
==========================================
+ Hits          595      651      +56     
  Misses          1        1              
  Partials        2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@desmondinho desmondinho merged commit 4e630bb into main May 24, 2024
3 checks passed
@desmondinho desmondinho deleted the feat/card branch May 24, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Scope: Components Improvements or additions to components ✨ Type: Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Add card component
1 participant