Skip to content

0.7.1

Latest
Compare
Choose a tag to compare
@gfargo gfargo released this 09 Jan 22:19
· 4 commits to main since this release
d416d57

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 in UnicodeCardView and improve alignment in text utilities. (a2f3a95)
  • Enhance Card config and clean up tests by improving config to include default pip values, ensuring consistent rendering even when pip is absent in CARD_DIMENSIONS. Adjust robotCard.test.ts import order and update jackOfClubs access method. Remove obsolete UnicodeCard.test.tsx. (5b7bd30)
  • Refactor robot theme and add card art renderer by moving ROBOT_CARD_ART and ROBOT_FEATURES to robotTheme.ts. Introduce cardArtRenderer.ts for dynamic rendering of card art sections. Update Card 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 in storybook with unicode-card option and update readme.md with usage details. (616c3c6)
  • Add tests and constants to UnicodeCard for accurate rendering of card suits, values, colors, and styles. Implement getCardUnicode for card character retrieval and enhance customization options. (26dd1f0)

Deck and Card Initialization Improvements

  • Enhance deck initialization by updating DeckProvider to initialize deck with createStandardDeck if initialCards 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 introducing createAsciiPipLayout for future ascii 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