Card Art and Rendering Enhancements
- Refactor card art and improve code readability by removing redundant line breaks and ensuring consistent formatting across themes. Enhance code readability with
replaceAll
for string replacements and add type annotations for props in components. Simplify switch cases inUnicodeCardView
and improve alignment in text utilities. (a2f3a95) - Enhance
Card
config and clean up tests by improvingconfig
to include defaultpip
values, ensuring consistent rendering even whenpip
is absent inCARD_DIMENSIONS
. AdjustrobotCard.test.ts
import order and updatejackOfClubs
access method. Remove obsoleteUnicodeCard.test.tsx
. (5b7bd30) - Refactor robot theme and add card art renderer by moving
ROBOT_CARD_ART
andROBOT_FEATURES
torobotTheme.ts
. IntroducecardArtRenderer.ts
for dynamic rendering of card art sections. UpdateCard
component to use the new renderer for the robot theme and add tests for robot card rendering. (962a52c) - Add theme support for ASCII card art with multiple themes including geometric, animal, robot, pixel, and medieval styles. Update card rendering logic to support theme selection, enhancing customization options. (cd8e418)
UnicodeCard Enhancements
- Add UnicodeCardView to storybook, introducing
UnicodeCardView
component for displaying Unicode-based card representations. Enhance navigation instorybook
withunicode-card
option and updatereadme.md
with usage details. (616c3c6) - Add tests and constants to
UnicodeCard
for accurate rendering of card suits, values, colors, and styles. ImplementgetCardUnicode
for card character retrieval and enhance customization options. (26dd1f0)
Deck and Card Initialization Improvements
- Enhance deck initialization by updating
DeckProvider
to initializedeck
withcreateStandardDeck
ifinitialCards
is not provided, ensuring a default deck setup. (d416d57)
Code Refactoring and Organization
- Refactor card rendering logic by moving utility functions and constants to separate modules, simplifying the
Card
component and improving code organization. (ff97f6e) - Enhance card layout variants by updating the
simple
variant layout, adjusting pip positions, and introducingcreateAsciiPipLayout
for futureascii
variant enhancements. (e3bdfc7)
Previous Releases
Additional Changes
- Add exports for CardGrid components to enhance modularity and ease of access, allowing developers to utilize grid-based card components directly from the main export file. (5828ea4)
Full Changelog: 0.6.0...0.7.1