@surdeddd/bottom-sheet 0.23.3 → 0.23.4

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.
Files changed (45) hide show
  1. package/README.md +18 -16
  2. package/README.ru.md +697 -0
  3. package/dist/{BottomSheetCore-CaJwHnxY.d.cts → BottomSheetCore-C5tJYVMY.d.cts} +2 -1
  4. package/dist/{BottomSheetCore-COvILxmR.d.ts → BottomSheetCore-DxSrC4QC.d.ts} +2 -1
  5. package/dist/{BottomSheetEngine-C_1aPJsU.d.cts → BottomSheetEngine-B3F9qukX.d.cts} +1 -1
  6. package/dist/{BottomSheetEngine-CsgCcCSO.d.ts → BottomSheetEngine-BchzgqGG.d.ts} +1 -1
  7. package/dist/core.d.cts +2 -2
  8. package/dist/core.d.ts +2 -2
  9. package/dist/debug.d.cts +3 -2
  10. package/dist/debug.d.ts +3 -2
  11. package/dist/{default-features-CTJb8Wdk.d.cts → default-features-BGiCSmV1.d.cts} +1 -1
  12. package/dist/{default-features-BJx7J0NH.d.ts → default-features-DwVTzDwP.d.ts} +1 -1
  13. package/dist/element.cjs +7 -2
  14. package/dist/element.d.cts +5 -3
  15. package/dist/element.d.ts +5 -3
  16. package/dist/element.iife.global.js +1 -1
  17. package/dist/element.js +7 -2
  18. package/dist/features.d.cts +3 -3
  19. package/dist/features.d.ts +3 -3
  20. package/dist/{index-CXN7t3rr.d.ts → index-C7TSQkVK.d.cts} +3 -2
  21. package/dist/{index-BBrJJjy5.d.cts → index-CdM1tke5.d.ts} +3 -2
  22. package/dist/index.d.cts +7 -6
  23. package/dist/index.d.ts +7 -6
  24. package/dist/integrations/formik.d.cts +3 -2
  25. package/dist/integrations/formik.d.ts +3 -2
  26. package/dist/integrations/react-hook-form.d.cts +3 -2
  27. package/dist/integrations/react-hook-form.d.ts +3 -2
  28. package/dist/overlay.d.cts +2 -1
  29. package/dist/overlay.d.ts +2 -1
  30. package/dist/preact.d.cts +2 -2
  31. package/dist/preact.d.ts +2 -2
  32. package/dist/qwik.d.cts +5 -3
  33. package/dist/qwik.d.ts +5 -3
  34. package/dist/react.d.cts +8 -5
  35. package/dist/react.d.ts +8 -5
  36. package/dist/solid.d.cts +2 -1
  37. package/dist/solid.d.ts +2 -1
  38. package/dist/svelte-core.cjs +2 -0
  39. package/dist/svelte-core.js +1 -1
  40. package/dist/svelte-src/BottomSheet.svelte +1 -1
  41. package/dist/svelte.cjs +1 -2
  42. package/dist/svelte.js +1 -2
  43. package/dist/webgl.d.cts +3 -2
  44. package/dist/webgl.d.ts +3 -2
  45. package/package.json +22 -24
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- export { B as BottomSheetEngine } from './BottomSheetEngine-C_1aPJsU.cjs';
2
- import { h as SnapPoint, f as SheetMode, g as EngineOptions, P as PhysicalSheetMode, j as ScrimOverlayPosition } from './BottomSheetCore-CaJwHnxY.cjs';
3
- export { k as AnchorAnimationPreset, l as AnchorAnimationSpec, m as AnchorHandle, A as AnchorOptions, n as AnchorPosition, o as AnchorState, B as BottomSheetCore, C as CloseReason, E as EngineFeature, a as EngineFeatureContext, b as EngineFeatureOptions, c as EngineFeatureStage, d as EngineState, L as LogicalSheetMode, p as Plugin, q as SCRIM_PRESETS, r as ScrimOverlayOptions, s as ScrimPreset, t as ScrimPresetConfig, u as ScrimStageDef, i as ScrimStagesOptions, v as ScrimUpdate, S as SheetEventMap, w as SnapId, e as SnapPointDef, T as TeardownScope, x as runAnchorTransition } from './BottomSheetCore-CaJwHnxY.cjs';
4
- export { a as autoCollapseFeature, c as contentSwipeFeature, d as defaultEngineFeatures, p as persistFeature, r as routeFeature, v as visualViewportFeature } from './default-features-CTJb8Wdk.cjs';
5
- export { R as ResolvedSnap, r as resolveSnapList } from './index-BBrJJjy5.cjs';
1
+ export { B as BottomSheetEngine } from './BottomSheetEngine-B3F9qukX.cjs';
2
+ import { h as SnapPoint, f as SheetMode, g as EngineOptions, P as PhysicalSheetMode, j as ScrimOverlayPosition } from './BottomSheetCore-C5tJYVMY.cjs';
3
+ export { k as AnchorAnimationPreset, l as AnchorAnimationSpec, m as AnchorHandle, A as AnchorOptions, n as AnchorPosition, o as AnchorState, B as BottomSheetCore, C as CloseReason, E as EngineFeature, a as EngineFeatureContext, b as EngineFeatureOptions, c as EngineFeatureStage, d as EngineState, L as LogicalSheetMode, p as Plugin, q as SCRIM_PRESETS, r as ScrimOverlayOptions, s as ScrimPreset, t as ScrimPresetConfig, u as ScrimStageDef, i as ScrimStagesOptions, v as ScrimUpdate, S as SheetEventMap, w as SnapId, e as SnapPointDef, T as TeardownScope, x as runAnchorTransition } from './BottomSheetCore-C5tJYVMY.cjs';
4
+ export { a as autoCollapseFeature, c as contentSwipeFeature, d as defaultEngineFeatures, p as persistFeature, r as routeFeature, v as visualViewportFeature } from './default-features-BGiCSmV1.cjs';
5
+ export { R as ResolvedSnap, r as resolveSnapList } from './index-C7TSQkVK.cjs';
6
6
  import './transform-jVfAikE9.cjs';
7
7
 
8
8
  declare const resolveSnap: (point: SnapPoint | string, mode: SheetMode, measureFit?: () => number) => number;
@@ -103,4 +103,5 @@ type SheetAnchoredStyle = {
103
103
  declare function resolveSheetAnchoredStyle(mode: PhysicalSheetMode, position: "sheet-top-left" | "sheet-top-center" | "sheet-top-right", inset: string): SheetAnchoredStyle;
104
104
  declare function applyOverlayPosition(ws: CSSStyleDeclaration, mode: PhysicalSheetMode, position: ScrimOverlayPosition, inset: string): void;
105
105
 
106
- export { EngineOptions, PhysicalSheetMode, ScrimOverlayPosition, type SheetConfig, type SheetManager, SheetMode, SnapPoint, type SpringConfig, type SpringHandle, type SpringRunOptions, type StackEntry, type Tween, type TweenOptions, applyOverlayPosition, createSheetManager, installFocusTrap, installGestures, lockBodyScroll, resolveSheetAnchoredStyle, resolveSnap, sheetStack };
106
+ export { EngineOptions, PhysicalSheetMode, ScrimOverlayPosition, SheetMode, SnapPoint, applyOverlayPosition, createSheetManager, installFocusTrap, installGestures, lockBodyScroll, resolveSheetAnchoredStyle, resolveSnap, sheetStack };
107
+ export type { SheetConfig, SheetManager, SpringConfig, SpringHandle, SpringRunOptions, StackEntry, Tween, TweenOptions };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export { B as BottomSheetEngine } from './BottomSheetEngine-CsgCcCSO.js';
2
- import { h as SnapPoint, f as SheetMode, g as EngineOptions, P as PhysicalSheetMode, j as ScrimOverlayPosition } from './BottomSheetCore-COvILxmR.js';
3
- export { k as AnchorAnimationPreset, l as AnchorAnimationSpec, m as AnchorHandle, A as AnchorOptions, n as AnchorPosition, o as AnchorState, B as BottomSheetCore, C as CloseReason, E as EngineFeature, a as EngineFeatureContext, b as EngineFeatureOptions, c as EngineFeatureStage, d as EngineState, L as LogicalSheetMode, p as Plugin, q as SCRIM_PRESETS, r as ScrimOverlayOptions, s as ScrimPreset, t as ScrimPresetConfig, u as ScrimStageDef, i as ScrimStagesOptions, v as ScrimUpdate, S as SheetEventMap, w as SnapId, e as SnapPointDef, T as TeardownScope, x as runAnchorTransition } from './BottomSheetCore-COvILxmR.js';
4
- export { a as autoCollapseFeature, c as contentSwipeFeature, d as defaultEngineFeatures, p as persistFeature, r as routeFeature, v as visualViewportFeature } from './default-features-BJx7J0NH.js';
5
- export { R as ResolvedSnap, r as resolveSnapList } from './index-CXN7t3rr.js';
1
+ export { B as BottomSheetEngine } from './BottomSheetEngine-BchzgqGG.js';
2
+ import { h as SnapPoint, f as SheetMode, g as EngineOptions, P as PhysicalSheetMode, j as ScrimOverlayPosition } from './BottomSheetCore-DxSrC4QC.js';
3
+ export { k as AnchorAnimationPreset, l as AnchorAnimationSpec, m as AnchorHandle, A as AnchorOptions, n as AnchorPosition, o as AnchorState, B as BottomSheetCore, C as CloseReason, E as EngineFeature, a as EngineFeatureContext, b as EngineFeatureOptions, c as EngineFeatureStage, d as EngineState, L as LogicalSheetMode, p as Plugin, q as SCRIM_PRESETS, r as ScrimOverlayOptions, s as ScrimPreset, t as ScrimPresetConfig, u as ScrimStageDef, i as ScrimStagesOptions, v as ScrimUpdate, S as SheetEventMap, w as SnapId, e as SnapPointDef, T as TeardownScope, x as runAnchorTransition } from './BottomSheetCore-DxSrC4QC.js';
4
+ export { a as autoCollapseFeature, c as contentSwipeFeature, d as defaultEngineFeatures, p as persistFeature, r as routeFeature, v as visualViewportFeature } from './default-features-DwVTzDwP.js';
5
+ export { R as ResolvedSnap, r as resolveSnapList } from './index-CdM1tke5.js';
6
6
  import './transform-jVfAikE9.js';
7
7
 
8
8
  declare const resolveSnap: (point: SnapPoint | string, mode: SheetMode, measureFit?: () => number) => number;
@@ -103,4 +103,5 @@ type SheetAnchoredStyle = {
103
103
  declare function resolveSheetAnchoredStyle(mode: PhysicalSheetMode, position: "sheet-top-left" | "sheet-top-center" | "sheet-top-right", inset: string): SheetAnchoredStyle;
104
104
  declare function applyOverlayPosition(ws: CSSStyleDeclaration, mode: PhysicalSheetMode, position: ScrimOverlayPosition, inset: string): void;
105
105
 
106
- export { EngineOptions, PhysicalSheetMode, ScrimOverlayPosition, type SheetConfig, type SheetManager, SheetMode, SnapPoint, type SpringConfig, type SpringHandle, type SpringRunOptions, type StackEntry, type Tween, type TweenOptions, applyOverlayPosition, createSheetManager, installFocusTrap, installGestures, lockBodyScroll, resolveSheetAnchoredStyle, resolveSnap, sheetStack };
106
+ export { EngineOptions, PhysicalSheetMode, ScrimOverlayPosition, SheetMode, SnapPoint, applyOverlayPosition, createSheetManager, installFocusTrap, installGestures, lockBodyScroll, resolveSheetAnchoredStyle, resolveSnap, sheetStack };
107
+ export type { SheetConfig, SheetManager, SpringConfig, SpringHandle, SpringRunOptions, StackEntry, Tween, TweenOptions };
@@ -1,4 +1,4 @@
1
- import { S as SheetEventMap } from '../BottomSheetCore-CaJwHnxY.cjs';
1
+ import { SheetEventMap } from '../core.cjs';
2
2
  import '../transform-jVfAikE9.cjs';
3
3
 
4
4
  type FormikStateLike = {
@@ -18,4 +18,5 @@ type FormikRefLike = {
18
18
  };
19
19
  declare function useFormikGuard<Values extends Record<string, unknown> = Record<string, unknown>>(sheetRef: SheetGuardRef, formikRef: FormikRefLike, _tag?: Values): void;
20
20
 
21
- export { type FormikRefLike, type FormikStateLike, type SheetEventTarget, type SheetGuardRef, useFormikGuard };
21
+ export { useFormikGuard };
22
+ export type { FormikRefLike, FormikStateLike, SheetEventTarget, SheetGuardRef };
@@ -1,4 +1,4 @@
1
- import { S as SheetEventMap } from '../BottomSheetCore-COvILxmR.js';
1
+ import { SheetEventMap } from '../core.js';
2
2
  import '../transform-jVfAikE9.js';
3
3
 
4
4
  type FormikStateLike = {
@@ -18,4 +18,5 @@ type FormikRefLike = {
18
18
  };
19
19
  declare function useFormikGuard<Values extends Record<string, unknown> = Record<string, unknown>>(sheetRef: SheetGuardRef, formikRef: FormikRefLike, _tag?: Values): void;
20
20
 
21
- export { type FormikRefLike, type FormikStateLike, type SheetEventTarget, type SheetGuardRef, useFormikGuard };
21
+ export { useFormikGuard };
22
+ export type { FormikRefLike, FormikStateLike, SheetEventTarget, SheetGuardRef };
@@ -1,4 +1,4 @@
1
- import { S as SheetEventMap } from '../BottomSheetCore-CaJwHnxY.cjs';
1
+ import { SheetEventMap } from '../core.cjs';
2
2
  import '../transform-jVfAikE9.cjs';
3
3
 
4
4
  type RhfFormStateLike = {
@@ -18,4 +18,5 @@ type SheetGuardRef = {
18
18
  };
19
19
  declare function useFormGuard<TFieldValues extends Record<string, unknown> = Record<string, unknown>>(sheetRef: SheetGuardRef, methods: RhfFormStateLike, _tag?: TFieldValues): void;
20
20
 
21
- export { type RhfFormStateLike, type SheetEventTarget, type SheetGuardRef, useFormGuard };
21
+ export { useFormGuard };
22
+ export type { RhfFormStateLike, SheetEventTarget, SheetGuardRef };
@@ -1,4 +1,4 @@
1
- import { S as SheetEventMap } from '../BottomSheetCore-COvILxmR.js';
1
+ import { SheetEventMap } from '../core.js';
2
2
  import '../transform-jVfAikE9.js';
3
3
 
4
4
  type RhfFormStateLike = {
@@ -18,4 +18,5 @@ type SheetGuardRef = {
18
18
  };
19
19
  declare function useFormGuard<TFieldValues extends Record<string, unknown> = Record<string, unknown>>(sheetRef: SheetGuardRef, methods: RhfFormStateLike, _tag?: TFieldValues): void;
20
20
 
21
- export { type RhfFormStateLike, type SheetEventTarget, type SheetGuardRef, useFormGuard };
21
+ export { useFormGuard };
22
+ export type { RhfFormStateLike, SheetEventTarget, SheetGuardRef };
@@ -159,4 +159,5 @@ declare class OverlayEngine {
159
159
 
160
160
  declare const createOverlay: (opts: OverlayOptions) => OverlayEngine;
161
161
 
162
- export { OVERLAY_PRESETS, OverlayEngine as Overlay, type OverlayAnimation, type OverlayCloseReason, type OverlayEdge, OverlayEngine, type OverlayEventMap, type OverlayMountTarget, type OverlayOptions, type OverlayPreset, type OverlayState, type OverlayUpdate, type SwipeToCloseConfig, createOverlay };
162
+ export { OVERLAY_PRESETS, OverlayEngine as Overlay, OverlayEngine, createOverlay };
163
+ export type { OverlayAnimation, OverlayCloseReason, OverlayEdge, OverlayEventMap, OverlayMountTarget, OverlayOptions, OverlayPreset, OverlayState, OverlayUpdate, SwipeToCloseConfig };
package/dist/overlay.d.ts CHANGED
@@ -159,4 +159,5 @@ declare class OverlayEngine {
159
159
 
160
160
  declare const createOverlay: (opts: OverlayOptions) => OverlayEngine;
161
161
 
162
- export { OVERLAY_PRESETS, OverlayEngine as Overlay, type OverlayAnimation, type OverlayCloseReason, type OverlayEdge, OverlayEngine, type OverlayEventMap, type OverlayMountTarget, type OverlayOptions, type OverlayPreset, type OverlayState, type OverlayUpdate, type SwipeToCloseConfig, createOverlay };
162
+ export { OVERLAY_PRESETS, OverlayEngine as Overlay, OverlayEngine, createOverlay };
163
+ export type { OverlayAnimation, OverlayCloseReason, OverlayEdge, OverlayEventMap, OverlayMountTarget, OverlayOptions, OverlayPreset, OverlayState, OverlayUpdate, SwipeToCloseConfig };
package/dist/preact.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { BottomSheet, BottomSheetFromConfig, BottomSheetFromConfigProps, BottomSheetHandle, BottomSheetProps, HeaderProp, Overlay, OverlayHandle, OverlayProps, SheetConfig, UseBottomSheetRefs, UseBottomSheetReturn, UseOverlayReturn, useBottomSheet, useOverlay } from './react.cjs';
2
- export { d as EngineState, f as SheetMode, h as SnapPoint, e as SnapPointDef } from './BottomSheetCore-CaJwHnxY.cjs';
2
+ export { d as EngineState, f as SheetMode, h as SnapPoint, e as SnapPointDef } from './BottomSheetCore-C5tJYVMY.cjs';
3
3
  export { OverlayEdge, OverlayOptions, OverlayState } from './overlay.cjs';
4
4
  import 'react';
5
- import './BottomSheetEngine-C_1aPJsU.cjs';
5
+ import './BottomSheetEngine-B3F9qukX.cjs';
6
6
  import './teleport-7uYNiEAT.cjs';
7
7
  import './transform-jVfAikE9.cjs';
package/dist/preact.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { BottomSheet, BottomSheetFromConfig, BottomSheetFromConfigProps, BottomSheetHandle, BottomSheetProps, HeaderProp, Overlay, OverlayHandle, OverlayProps, SheetConfig, UseBottomSheetRefs, UseBottomSheetReturn, UseOverlayReturn, useBottomSheet, useOverlay } from './react.js';
2
- export { d as EngineState, f as SheetMode, h as SnapPoint, e as SnapPointDef } from './BottomSheetCore-COvILxmR.js';
2
+ export { d as EngineState, f as SheetMode, h as SnapPoint, e as SnapPointDef } from './BottomSheetCore-DxSrC4QC.js';
3
3
  export { OverlayEdge, OverlayOptions, OverlayState } from './overlay.js';
4
4
  import 'react';
5
- import './BottomSheetEngine-CsgCcCSO.js';
5
+ import './BottomSheetEngine-BchzgqGG.js';
6
6
  import './teleport-7uYNiEAT.js';
7
7
  import './transform-jVfAikE9.js';
package/dist/qwik.d.cts CHANGED
@@ -1,8 +1,9 @@
1
1
  import * as _builder_io_qwik from '@builder.io/qwik';
2
2
  import { QRL } from '@builder.io/qwik';
3
3
  import { T as TeleportTarget } from './teleport-7uYNiEAT.cjs';
4
- import { e as SnapPointDef, f as SheetMode, g as EngineOptions, S as SheetEventMap, d as EngineState } from './BottomSheetCore-CaJwHnxY.cjs';
5
- export { h as SnapPoint } from './BottomSheetCore-CaJwHnxY.cjs';
4
+ import { e as SnapPointDef, f as SheetMode, g as EngineOptions, d as EngineState } from './BottomSheetCore-C5tJYVMY.cjs';
5
+ import { SheetEventMap } from './core.cjs';
6
+ export { h as SnapPoint } from './BottomSheetCore-C5tJYVMY.cjs';
6
7
  import './transform-jVfAikE9.cjs';
7
8
 
8
9
  type BottomSheetProps<TId extends string = string> = {
@@ -51,4 +52,5 @@ type BottomSheetProps<TId extends string = string> = {
51
52
  };
52
53
  declare const BottomSheet: _builder_io_qwik.Component<BottomSheetProps<string>>;
53
54
 
54
- export { BottomSheet, type BottomSheetProps, EngineOptions, EngineState, SheetMode, SnapPointDef };
55
+ export { BottomSheet, EngineOptions, EngineState, SheetMode, SnapPointDef };
56
+ export type { BottomSheetProps };
package/dist/qwik.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import * as _builder_io_qwik from '@builder.io/qwik';
2
2
  import { QRL } from '@builder.io/qwik';
3
3
  import { T as TeleportTarget } from './teleport-7uYNiEAT.js';
4
- import { e as SnapPointDef, f as SheetMode, g as EngineOptions, S as SheetEventMap, d as EngineState } from './BottomSheetCore-COvILxmR.js';
5
- export { h as SnapPoint } from './BottomSheetCore-COvILxmR.js';
4
+ import { e as SnapPointDef, f as SheetMode, g as EngineOptions, d as EngineState } from './BottomSheetCore-DxSrC4QC.js';
5
+ import { SheetEventMap } from './core.js';
6
+ export { h as SnapPoint } from './BottomSheetCore-DxSrC4QC.js';
6
7
  import './transform-jVfAikE9.js';
7
8
 
8
9
  type BottomSheetProps<TId extends string = string> = {
@@ -51,4 +52,5 @@ type BottomSheetProps<TId extends string = string> = {
51
52
  };
52
53
  declare const BottomSheet: _builder_io_qwik.Component<BottomSheetProps<string>>;
53
54
 
54
- export { BottomSheet, type BottomSheetProps, EngineOptions, EngineState, SheetMode, SnapPointDef };
55
+ export { BottomSheet, EngineOptions, EngineState, SheetMode, SnapPointDef };
56
+ export type { BottomSheetProps };
package/dist/react.d.cts CHANGED
@@ -1,10 +1,12 @@
1
- import { g as EngineOptions, d as EngineState, A as AnchorOptions, i as ScrimStagesOptions, u as ScrimStageDef, S as SheetEventMap, C as CloseReason, v as ScrimUpdate, r as ScrimOverlayOptions, e as SnapPointDef, f as SheetMode } from './BottomSheetCore-CaJwHnxY.cjs';
2
- export { h as SnapPoint } from './BottomSheetCore-CaJwHnxY.cjs';
1
+ import { d as EngineState, e as SnapPointDef, f as SheetMode } from './BottomSheetCore-C5tJYVMY.cjs';
2
+ import { EngineOptions, SheetEventMap, CloseReason } from './core.cjs';
3
+ import { AnchorOptions, ScrimStagesOptions, ScrimStageDef, ScrimUpdate, ScrimOverlayOptions } from './index.cjs';
4
+ export { h as SnapPoint } from './BottomSheetCore-C5tJYVMY.cjs';
3
5
  import { OverlayOptions, OverlayState, Overlay as OverlayEngine } from './overlay.cjs';
4
6
  export { OverlayEdge } from './overlay.cjs';
5
7
  import * as react from 'react';
6
8
  import { CSSProperties, ReactNode } from 'react';
7
- import { B as BottomSheetEngine } from './BottomSheetEngine-C_1aPJsU.cjs';
9
+ import { BottomSheetEngine } from './index.cjs';
8
10
  import { T as TeleportTarget } from './teleport-7uYNiEAT.cjs';
9
11
  import './transform-jVfAikE9.cjs';
10
12
 
@@ -165,7 +167,7 @@ type OverlayHandle = {
165
167
  toggle: () => Promise<void>;
166
168
  state: OverlayState;
167
169
  };
168
- declare const Overlay: react.ForwardRefExoticComponent<Omit<OverlayOptions, "backdrop" | "element"> & {
170
+ declare const Overlay: react.ForwardRefExoticComponent<Omit<OverlayOptions, "element" | "backdrop"> & {
169
171
  open?: boolean;
170
172
  backdrop?: boolean;
171
173
  className?: string;
@@ -228,4 +230,5 @@ type BottomSheetFromConfigProps = {
228
230
  };
229
231
  declare const BottomSheetFromConfig: react.ForwardRefExoticComponent<BottomSheetFromConfigProps & react.RefAttributes<BottomSheetHandle>>;
230
232
 
231
- export { BottomSheet, BottomSheetFromConfig, type BottomSheetFromConfigProps, type BottomSheetHandle, type BottomSheetProps, EngineState, type HeaderProp, Overlay, type OverlayHandle, OverlayOptions, type OverlayProps, OverlayState, type SheetConfig, SheetMode, SnapPointDef, type UseBottomSheetRefs, type UseBottomSheetReturn, type UseOverlayReturn, useBottomSheet, useOverlay };
233
+ export { BottomSheet, BottomSheetFromConfig, EngineState, Overlay, OverlayOptions, OverlayState, SheetMode, SnapPointDef, useBottomSheet, useOverlay };
234
+ export type { BottomSheetFromConfigProps, BottomSheetHandle, BottomSheetProps, HeaderProp, OverlayHandle, OverlayProps, SheetConfig, UseBottomSheetRefs, UseBottomSheetReturn, UseOverlayReturn };
package/dist/react.d.ts CHANGED
@@ -1,10 +1,12 @@
1
- import { g as EngineOptions, d as EngineState, A as AnchorOptions, i as ScrimStagesOptions, u as ScrimStageDef, S as SheetEventMap, C as CloseReason, v as ScrimUpdate, r as ScrimOverlayOptions, e as SnapPointDef, f as SheetMode } from './BottomSheetCore-COvILxmR.js';
2
- export { h as SnapPoint } from './BottomSheetCore-COvILxmR.js';
1
+ import { d as EngineState, e as SnapPointDef, f as SheetMode } from './BottomSheetCore-DxSrC4QC.js';
2
+ import { EngineOptions, SheetEventMap, CloseReason } from './core.js';
3
+ import { AnchorOptions, ScrimStagesOptions, ScrimStageDef, ScrimUpdate, ScrimOverlayOptions } from './index.js';
4
+ export { h as SnapPoint } from './BottomSheetCore-DxSrC4QC.js';
3
5
  import { OverlayOptions, OverlayState, Overlay as OverlayEngine } from './overlay.js';
4
6
  export { OverlayEdge } from './overlay.js';
5
7
  import * as react from 'react';
6
8
  import { CSSProperties, ReactNode } from 'react';
7
- import { B as BottomSheetEngine } from './BottomSheetEngine-CsgCcCSO.js';
9
+ import { BottomSheetEngine } from './index.js';
8
10
  import { T as TeleportTarget } from './teleport-7uYNiEAT.js';
9
11
  import './transform-jVfAikE9.js';
10
12
 
@@ -165,7 +167,7 @@ type OverlayHandle = {
165
167
  toggle: () => Promise<void>;
166
168
  state: OverlayState;
167
169
  };
168
- declare const Overlay: react.ForwardRefExoticComponent<Omit<OverlayOptions, "backdrop" | "element"> & {
170
+ declare const Overlay: react.ForwardRefExoticComponent<Omit<OverlayOptions, "element" | "backdrop"> & {
169
171
  open?: boolean;
170
172
  backdrop?: boolean;
171
173
  className?: string;
@@ -228,4 +230,5 @@ type BottomSheetFromConfigProps = {
228
230
  };
229
231
  declare const BottomSheetFromConfig: react.ForwardRefExoticComponent<BottomSheetFromConfigProps & react.RefAttributes<BottomSheetHandle>>;
230
232
 
231
- export { BottomSheet, BottomSheetFromConfig, type BottomSheetFromConfigProps, type BottomSheetHandle, type BottomSheetProps, EngineState, type HeaderProp, Overlay, type OverlayHandle, OverlayOptions, type OverlayProps, OverlayState, type SheetConfig, SheetMode, SnapPointDef, type UseBottomSheetRefs, type UseBottomSheetReturn, type UseOverlayReturn, useBottomSheet, useOverlay };
233
+ export { BottomSheet, BottomSheetFromConfig, EngineState, Overlay, OverlayOptions, OverlayState, SheetMode, SnapPointDef, useBottomSheet, useOverlay };
234
+ export type { BottomSheetFromConfigProps, BottomSheetHandle, BottomSheetProps, HeaderProp, OverlayHandle, OverlayProps, SheetConfig, UseBottomSheetRefs, UseBottomSheetReturn, UseOverlayReturn };
package/dist/solid.d.cts CHANGED
@@ -470,4 +470,5 @@ type BottomSheetProps<TId extends string = string> = {
470
470
  };
471
471
  declare const BottomSheet: <TId extends string = string>(props: BottomSheetProps<TId>) => JSX.Element;
472
472
 
473
- export { BottomSheet, type BottomSheetProps, type EngineOptions, type EngineState, type SheetMode, type SnapPoint, type SnapPointDef };
473
+ export { BottomSheet };
474
+ export type { BottomSheetProps, EngineOptions, EngineState, SheetMode, SnapPoint, SnapPointDef };
package/dist/solid.d.ts CHANGED
@@ -470,4 +470,5 @@ type BottomSheetProps<TId extends string = string> = {
470
470
  };
471
471
  declare const BottomSheet: <TId extends string = string>(props: BottomSheetProps<TId>) => JSX.Element;
472
472
 
473
- export { BottomSheet, type BottomSheetProps, type EngineOptions, type EngineState, type SheetMode, type SnapPoint, type SnapPointDef };
473
+ export { BottomSheet };
474
+ export type { BottomSheetProps, EngineOptions, EngineState, SheetMode, SnapPoint, SnapPointDef };
@@ -4549,5 +4549,7 @@ function createBottomSheet(opts) {
4549
4549
  }
4550
4550
 
4551
4551
  exports.createBottomSheet = createBottomSheet;
4552
+ exports.resolveTeleportTarget = resolveTeleportTarget;
4553
+ exports.teleportElements = teleportElements;
4552
4554
  //# sourceMappingURL=svelte-core.cjs.map
4553
4555
  //# sourceMappingURL=svelte-core.cjs.map
@@ -4546,6 +4546,6 @@ function createBottomSheet(opts) {
4546
4546
  };
4547
4547
  }
4548
4548
 
4549
- export { createBottomSheet };
4549
+ export { createBottomSheet, resolveTeleportTarget, teleportElements };
4550
4550
  //# sourceMappingURL=svelte-core.js.map
4551
4551
  //# sourceMappingURL=svelte-core.js.map
@@ -5,7 +5,7 @@
5
5
  resolveTeleportTarget,
6
6
  teleportElements,
7
7
  type TeleportTarget,
8
- } from "../core/features/teleport";
8
+ } from "../svelte-core.js";
9
9
  import type {
10
10
  EngineState,
11
11
  SnapPointDef,
package/dist/svelte.cjs CHANGED
@@ -4847,8 +4847,7 @@ function BottomSheet($$anchor, $$props) {
4847
4847
  });
4848
4848
  }
4849
4849
  var span = $2__namespace.sibling(node_7, 2);
4850
- var text = $2__namespace.child(span, true);
4851
- $2__namespace.reset(span);
4850
+ var text = $2__namespace.only_child(span, true);
4852
4851
  $2__namespace.reset(section);
4853
4852
  $2__namespace.bind_this(section, ($$value) => $2__namespace.set(sheetEl, $$value), () => $2__namespace.get(sheetEl));
4854
4853
  var node_9 = $2__namespace.sibling(section, 2);
package/dist/svelte.js CHANGED
@@ -4825,8 +4825,7 @@ function BottomSheet($$anchor, $$props) {
4825
4825
  });
4826
4826
  }
4827
4827
  var span = $2.sibling(node_7, 2);
4828
- var text = $2.child(span, true);
4829
- $2.reset(span);
4828
+ var text = $2.only_child(span, true);
4830
4829
  $2.reset(section);
4831
4830
  $2.bind_this(section, ($$value) => $2.set(sheetEl, $$value), () => $2.get(sheetEl));
4832
4831
  var node_9 = $2.sibling(section, 2);
package/dist/webgl.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { E as EngineFeature } from './BottomSheetCore-CaJwHnxY.cjs';
1
+ import { EngineFeature } from './core.cjs';
2
2
  import './transform-jVfAikE9.cjs';
3
3
 
4
4
  type WebGLRendererOptions = {
@@ -14,4 +14,5 @@ type WebGLUnsupportedReason = "no-document" | "no-webgl" | "reduced-motion" | "c
14
14
 
15
15
  declare const webglRenderer: (options?: WebGLRendererOptions) => EngineFeature;
16
16
 
17
- export { type WebGLRendererOptions, type WebGLUnsupportedReason, webglRenderer };
17
+ export { webglRenderer };
18
+ export type { WebGLRendererOptions, WebGLUnsupportedReason };
package/dist/webgl.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { E as EngineFeature } from './BottomSheetCore-COvILxmR.js';
1
+ import { EngineFeature } from './core.js';
2
2
  import './transform-jVfAikE9.js';
3
3
 
4
4
  type WebGLRendererOptions = {
@@ -14,4 +14,5 @@ type WebGLUnsupportedReason = "no-document" | "no-webgl" | "reduced-motion" | "c
14
14
 
15
15
  declare const webglRenderer: (options?: WebGLRendererOptions) => EngineFeature;
16
16
 
17
- export { type WebGLRendererOptions, type WebGLUnsupportedReason, webglRenderer };
17
+ export { webglRenderer };
18
+ export type { WebGLRendererOptions, WebGLUnsupportedReason };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@surdeddd/bottom-sheet",
3
- "version": "0.23.3",
3
+ "version": "0.23.4",
4
4
  "description": "Universal, headless bottom sheet — framework-agnostic core with React, Vue 3, Svelte, Solid, Qwik, Preact, Lit and Custom Element adapters. Pointer Events, snap points, momentum, a11y, SSR-safe.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -399,49 +399,47 @@
399
399
  }
400
400
  },
401
401
  "overrides": {
402
- "postcss": "^8.5.23",
403
- "seroval": "^1.5.6",
404
- "seroval-plugins": "^1.5.6"
402
+ "postcss": "^8.5.23"
405
403
  },
406
404
  "devDependencies": {
407
405
  "@arethetypeswrong/cli": "^0.18.5",
408
406
  "@axe-core/playwright": "^4.12.1",
409
- "@builder.io/qwik": "^1.20.0",
407
+ "@builder.io/qwik": "^1.20.1",
410
408
  "@lhci/cli": "^0.15.1",
411
- "@playwright/test": "^1.62.1",
412
- "@size-limit/preset-small-lib": "^13.0.3",
409
+ "@playwright/test": "^1.63.0",
410
+ "@size-limit/preset-small-lib": "^14.0.0",
413
411
  "@sveltejs/vite-plugin-svelte": "^6.2.4",
414
412
  "@types/node": "^20.19.43",
415
- "@types/react": "^18.3.31",
416
- "@types/react-dom": "^18.3.7",
417
- "@types/three": "^0.185.1",
413
+ "@types/react": "^19.3.0",
414
+ "@types/react-dom": "^19.3.0",
415
+ "@types/three": "^0.186.0",
418
416
  "@vitejs/plugin-react": "^5.2.0",
419
- "@vitejs/plugin-vue": "^6.0.8",
417
+ "@vitejs/plugin-vue": "^6.0.10",
420
418
  "@vitest/coverage-v8": "^4.1.10",
421
419
  "esbuild-plugin-solid": "^0.6.0",
422
- "esbuild-svelte": "0.9.4",
420
+ "esbuild-svelte": "0.9.5",
423
421
  "fast-check": "^4.9.0",
424
- "happy-dom": "^20.11.1",
422
+ "happy-dom": "^21.0.4",
425
423
  "husky": "^9.1.7",
426
424
  "lit": "^3.3.3",
427
- "motion": "^13.1.0",
425
+ "motion": "^14.6.0",
428
426
  "patch-package": "^8.0.1",
429
- "publint": "^0.3.22",
430
- "react": "^18.3.1",
431
- "react-dom": "^18.3.1",
427
+ "publint": "^0.3.24",
428
+ "react": "^19.3.0",
429
+ "react-dom": "^19.3.0",
432
430
  "rolldown": "^1.2.8",
433
- "size-limit": "^13.0.3",
434
- "solid-js": "^1.9.14",
435
- "svelte": "^5.56.8",
436
- "three": "^0.185.1",
437
- "tsup": "^8.5.1",
431
+ "size-limit": "^14.0.0",
432
+ "solid-js": "^1.9.15",
433
+ "svelte": "^5.57.1",
434
+ "three": "^0.186.1",
435
+ "tsup": "^9.0.0",
438
436
  "typedoc": "^0.28.20",
439
437
  "typescript": "^5.9.3",
440
438
  "unplugin-vue": "^7.2.0",
441
- "vite": "^7.3.6",
439
+ "vite": "^7.3.7",
442
440
  "vite-plugin-solid": "^2.11.14",
443
441
  "vitest": "^4.1.10",
444
- "vue": "^3.5.40",
442
+ "vue": "^3.5.43",
445
443
  "vue-tsc": "^3.3.9"
446
444
  },
447
445
  "engines": {