0.6.0
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 useGridCard
type for consistency. (3c4fec3)
- Introduce
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)
- Make
-
Enhance card visuals and refactor tests:
- Improve card representation in tests by using Unicode and color codes for clarity. (e586ab5)
- Refactor
getAlignmentStyle
inCardStack
for readability. (e586ab5) - Update
CardGrid
tests with snapshot verification and useundefined
for empty cells. (e586ab5) - Enhance
Card
ASCII art and type safety. (e586ab5) - Adjust
Deck
andMiniCard
visuals. (e586ab5) - Fix typos in
readme.md
andsrc/types
. (e586ab5)
Layout Improvements
- Enhance
CardStack
with alignment and spacing:
Full Changelog: 0.5.2...0.6.0