Removed: SwipeableDrawer from @trackunit/react-drawer
SwipeableDrawer, DrawerPuller, and useSwipeHandlers have been removed from @trackunit/react-drawer. The react-swipeable peer dependency is also gone.
Migration
Replace SwipeableDrawer with the new Sheet component from @trackunit/react-components.
Before:
import { SwipeableDrawer } from "@trackunit/react-drawer";
<SwipeableDrawer open={open} onClose={() => setOpen(false)}>
{children}
</SwipeableDrawer>
After:
import { Sheet, useSheet } from "@trackunit/react-components";
const sheet = useSheet();
<Sheet {...sheet}>
{children}
</Sheet>
Use useSheet for open/close state management instead of manual open/onClose props. See the Sheet component changelog for the full API.