Skip to content

v3.4.0

Latest

Choose a tag to compare

@blvdmitry blvdmitry released this 18 Mar 22:40
· 7 commits to main since this release

Full web changelog · Documentation

npm install reshaped

Tailwind v4 support

We've introduced automatic integration with the new CSS-based configuration in Tailwind v4.
Now, every time you generate a theme, an additional tailwind.css file is created containing the design token definitions.
This file can be imported directly into your Tailwind setup for seamless theming.

@import "tailwindcss";
@import "reshaped/themes/reshaped/tailwind.css";

Updated unit testing setup [Pro]

In this release, we're transitioning to the newly introduced @storybook/experimental-addon-test and removing jest and react-testing-library dependencies.
With this new setup, all component tests are now available in the Storybook UI and run directly in the browser while you work on components.
Additionally, these stories are used in CI, eliminating the need to maintain duplicate tests and environments.

For GitHub users, we've optimized our GitHub Actions setup by parallelizing unit test runs.
This significantly reduces the time required to complete the entire test suite.

ProgressIndicator component

We've introduced a new ProgressIndicator component for tracking and displaying
progress in a multi-step process. It's especially useful for Carousels, onboarding
flows, or any sliding content that requires a visual progress indicator.

Other improvements

  • Figma, Button: Removed an internal .button-content component to resolve issues with the Figma style overrides.
    We had to implement this to avoid the edge cases we've seen reported and you might need to swap the previously provided button component to the updated one after an update.
  • Theming: Fixed generateThemeColors error when called with manually passed hexDark color values
  • Theming: Updated documentation to mention baseThemeDefinition imports
  • Accordion: Fixed expand and collapse animation issues in Preact
  • Autocomplete: Updated to highlight the currently used value when focusing the text field
  • Autocomplete: Added onOpen, onClose and active properties support
  • Breadcrumbs: Added expandAriaLabel support
  • Button: Addd loadingAriaLabel support
  • Carousel: Added support for passing attributes.style
  • Carousel: Applied 100^ width for the case when its items don't fit into the parent content and stretch the carousel wider than it should be
  • Carousel: Added onChange and onScroll handlers support
  • Carousel: Added an instanceRef.navigateTo ref method
  • ContextMenu: Added onOpen and onClose handlers support
  • ContextMenu: Fixed automatic parent detection for locking the scroll
  • DropdownMenu: Fixed onClick issues in submenus with the reduced motion setting turned on
  • DropdownMenu: Fixed an outside click race condition when working with multiple menus simultaneously
  • Loader: Added ariaLabel support
  • Overlay: Updated the lockScroll implementation to respect containerRef instead of locking the page scroll
  • Progress: Added ariaLabel support
  • ScrollArea: Fixed hover effect for the nested scroll areas
  • Table: Added compound component types to the package exports
  • Popover, Tooltip, DropdownMenu, ContextMenu: Improved rendering inside the scrollable areas with a new rendering approach and avoiding the content clipping
  • Popover, Tooltip, DropdownMenu, ContextMenu: Updated position fallbacks to respect the passed containerRef boundaries
  • Popover, Tooltip, DropdownMenu, ContextMenu: Updated onClose to pass a reason that caused the content to close
  • useKeyboardMode: Added new hook for the granular focus ring display management