@seed-design/react-drawer 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -224,7 +224,7 @@ function useSnapPoints({ activeSnapPointProp, setActiveSnapPointProp, snapPoints
224
224
  opacity: "1"
225
225
  });
226
226
  }
227
- setActiveSnapPoint(snapPoints?.[Math.max(newSnapPointIndex, 0)]);
227
+ setActiveSnapPoint(snapPoints?.[Math.max(newSnapPointIndex, 0)] ?? null);
228
228
  }, [
229
229
  drawerRef,
230
230
  overlayRef,
@@ -220,7 +220,7 @@ function useSnapPoints({ activeSnapPointProp, setActiveSnapPointProp, snapPoints
220
220
  opacity: "1"
221
221
  });
222
222
  }
223
- setActiveSnapPoint(snapPoints?.[Math.max(newSnapPointIndex, 0)]);
223
+ setActiveSnapPoint(snapPoints?.[Math.max(newSnapPointIndex, 0)] ?? null);
224
224
  }, [
225
225
  drawerRef,
226
226
  overlayRef,
package/lib/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- var Drawer12s = require('./Drawer-12s-gd4zJm0S.cjs');
1
+ var Drawer12s = require('./Drawer-12s-B-Yg_SM_.cjs');
2
2
 
3
3
  var Drawer_namespace = {
4
4
  __proto__: null,
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { D as DrawerBackdrop, a as DrawerCloseButton, b as DrawerContent, c as DrawerDescription, d as DrawerHandle, e as DrawerHeader, f as DrawerPositioner, g as DrawerRoot, h as DrawerTitle, i as DrawerTrigger } from './Drawer-12s-5syEwTtq.js';
2
- export { u as useDrawer, j as useDrawerContext } from './Drawer-12s-5syEwTtq.js';
1
+ import { D as DrawerBackdrop, a as DrawerCloseButton, b as DrawerContent, c as DrawerDescription, d as DrawerHandle, e as DrawerHeader, f as DrawerPositioner, g as DrawerRoot, h as DrawerTitle, i as DrawerTrigger } from './Drawer-12s-BDQbAi0U.js';
2
+ export { u as useDrawer, j as useDrawerContext } from './Drawer-12s-BDQbAi0U.js';
3
3
 
4
4
  var Drawer_namespace = {
5
5
  __proto__: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-design/react-drawer",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/daangn/seed-design.git",
@@ -165,7 +165,7 @@ export function useSnapPoints({
165
165
  });
166
166
  }
167
167
 
168
- setActiveSnapPoint(snapPoints?.[Math.max(newSnapPointIndex, 0)]);
168
+ setActiveSnapPoint(snapPoints?.[Math.max(newSnapPointIndex, 0)] ?? null);
169
169
  },
170
170
  [
171
171
  drawerRef,