What's Changed
✨ Features
- Introduced a new Gitflow workflow #2695 by @wingkwong
- Added
destroyInactiveTabPanel
prop for the Tabs component #2973 by @wingkwong - Implemented tests and stories for React Hook Form #2931 by @wingkwong
- Switched default
validationBehavior
to ARIA with prop-based customization #2987 by @ryo-manba - Added missing ref to the Date Picker input wrapper #3011 by @wingkwong
🛠️ Fixes
- Resolved issue with common colors not being added #2902 by @jrgarciadev
- Fixed range calendar to hide only dates outside the month #2906 by @ShrinidhiUpadhyaya
- Ensured consistent Date Picker styles for different variants #2908 by @wingkwong
- Corrected RTL label margin for required inputs #2781 by @mrbadri
- Fixed missing TableRowProps export #2866 by @sapkra
- Addressed switch support for uncontrolled switch in React Hook Form #2924 by @wingkwong
- Corrected Slider styles and missing marks when
hideThumb
is true #2883 by @wingkwong - Updated Accordion item heading tag for customizability #2265 by @outputboy
- Added
pointer-events-none
to skeleton base #2972 by @wingkwong - Fixed overflow issue in skeleton #2986 by @wingkwong
- Fixed V2 input/textarea spacing issue inside a table #3020 by @wingkwong
- Corrected Slider value calculation on mark click #3017 by @wingkwong
- Revised input
isInvalid
styles #3010 by @wingkwong - Addressed incorrect Tailwind classnames #3018 by @wingkwong
- Fixed dropdown focus behavior on press/enter keydown #2970 by @wingkwong
- Updated component type definition to prevent primitive values as items #2953 by @ryo-manba
- Fixed select component
onSelectionChange
to handle numbers #2937 by @ryo-manba - Resolved calendar scrolling issue when changing the month #2949 by @novsource
- Ensured
VisuallyHidden
uses aspan
inside phrasing elements #3013 by @kosmotema - Corrected focus behavior for popover-based elements #2854 by @wingkwong
- Fixed 'Tap to click' behavior on macOS with Edge/Chrome for Accordion and Tab #2725 by @ericfabreu
- Corrected inert value for Date Picker's true condition #3054 by @ShrinidhiUpadhyaya
- Resolved type error in
onKeyDown
event handler #3064 by @Gaic4o - Optimized
useScrollPosition
withuseCallback
anduseRef
#3049 by @Gaic4o - Fixed select component placeholder text display for controlled components #3081 by @ryo-manba
- Resolved peer dependency error in package #3014 by @winchesHe
- Fixed DatePicker time input #2845 by @chirokas
🧹 Chores & Documentation
- Updated React Aria packages #2889 by @jrgarciadev
- Added Storybook and canary release information to docs #2914 by @wingkwong
- Updated Date Picker docs to use JSX #2919 by @wingkwong
- Added alert to avoid confusion when installing a component #2927 by @jrgarciadev
- Revised breaking changes content in docs #3077 by @wingkwong
- Updated CLI docs #3096 by @winchesHe
♻️ Refactors
- Refactored root to fix React Aria packages #2944 by @jrgarciadev
- Refactored Cn utility #2915 by @jrgarciadev
- Added support for disabling animation globally #2929 by @jrgarciadev
- Updated custom-styles.ts #2982 by @kknownymouss
🚀 Continuous Integration
- Versioned packages via Changesets #2903 by @github-actions
👥 New Contributors
- @outputboy made their first contribution in #2265
- @kknownymouss made their first contribution in #2982
- @kosmotema made their first contribution in #3013
- @ericfabreu made their first contribution in #2725
- @Gaic4o made their first contribution in #3064
- @jesuzon made their first contribution in #3029
Full Changelog: https://github.com/nextui-org/nextui/compare/@nextui-org/react@2.3.6...@nextui-org/react@2.4.0