Skip to content

0.6.0

Compare
Choose a tag to compare
@gfargo gfargo released this 06 Jan 14:59
· 17 commits to main since this release
e586ab5

New Features

  • Add CardGrid component and tests:
    • Introduce CardGrid component to render a grid of cards with various configurations like variants, spacing, and alignment. (3c4fec3)
    • Add comprehensive tests to ensure correct rendering in different scenarios, including face-up/down states, grid sizes, and alignment options. (3c4fec3)
    • Update GridView to use GridCard type for consistency. (3c4fec3)

Component Enhancements

  • Enhance component views and storybook:

    • Make goBack prop readonly across all views to ensure immutability. (e668180)
    • Refactor onSelect handlers to use switch statements for better readability and maintainability. (e668180)
    • Adjust label casing for consistency. (e668180)
    • Improve JSX formatting for indicators and conditional rendering. (e668180)
    • Enhance Storybook component with cleaner conditional rendering and consistent formatting. (e668180)
  • Enhance card visuals and refactor tests:

    • Improve card representation in tests by using Unicode and color codes for clarity. (e586ab5)
    • Refactor getAlignmentStyle in CardStack for readability. (e586ab5)
    • Update CardGrid tests with snapshot verification and use undefined for empty cells. (e586ab5)
    • Enhance Card ASCII art and type safety. (e586ab5)
    • Adjust Deck and MiniCard visuals. (e586ab5)
    • Fix typos in readme.md and src/types. (e586ab5)

Layout Improvements

  • Enhance CardStack with alignment and spacing:
    • Add spacing and alignment properties to CardStack for better layout control. (e779899)
    • Adjust overlap calculation to consider spacing and variant. (e779899)
    • Remove redundant console logs from Card and set overflow to 'hidden'. (e779899)
    • Simplify CardStackView by making margin constant. (e779899)

Full Changelog: 0.5.2...0.6.0