- 42793ee: Full rewrite to narrow API to collapse animation and remove internal state. Intended for use with framework wrappers.
- cd21fd4: Remove package.json exports
-
1ee93e8: ## BREAKING CHANGES
- Adopts React 18's
useId
, making the library incompatible with React <18 - Switch to
tsup
frommicrobundle
for bundling library. No longer exports a UMD version, just CJS and MJS
- Refactors core functionality to vanilla JS (with a React) adapter, which I think should fix #103 and fix #100
- Added
onExpandedChange
option - Tries to detect if
getToggleProps
is used. If the toggle element ref can be accessed, thearia-labelledby
attribute will be added to the collapse element - Added
role="region"
to collapse - Updated toggle props to pass the appropriate attributes to the element, whether it's a button or not
- Adopts React 18's