@surdeddd/bottom-sheet 0.9.1 → 0.11.0
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.
- package/README.md +126 -83
- package/dist/{BottomSheetEngine-CBRcBwV-.d.ts → BottomSheetEngine-DRjCU73e.d.ts} +6 -5
- package/dist/{BottomSheetEngine-BcyruNP1.d.cts → BottomSheetEngine-DzsIwD28.d.cts} +6 -5
- package/dist/element.cjs +388 -222
- package/dist/element.d.cts +1 -1
- package/dist/element.d.ts +1 -1
- package/dist/element.iife.global.js +2 -2
- package/dist/element.js +388 -222
- package/dist/index.cjs +389 -266
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +389 -266
- package/dist/integrations/formik.d.cts +1 -1
- package/dist/integrations/formik.d.ts +1 -1
- package/dist/integrations/react-hook-form.d.cts +1 -1
- package/dist/integrations/react-hook-form.d.ts +1 -1
- package/dist/overlay.cjs +191 -58
- package/dist/overlay.d.cts +4 -3
- package/dist/overlay.d.ts +4 -3
- package/dist/overlay.js +191 -58
- package/dist/preact.d.cts +2 -1
- package/dist/preact.d.ts +2 -1
- package/dist/qwik.cjs +396 -211
- package/dist/qwik.d.cts +11 -2
- package/dist/qwik.d.ts +11 -2
- package/dist/qwik.js +396 -211
- package/dist/react.cjs +500 -332
- package/dist/react.d.cts +26 -4
- package/dist/react.d.ts +26 -4
- package/dist/react.js +500 -332
- package/dist/solid.cjs +362 -210
- package/dist/solid.d.cts +14 -4
- package/dist/solid.d.ts +14 -4
- package/dist/solid.js +362 -210
- package/dist/solid.source.jsx +362 -210
- package/dist/styles.css +17 -1
- package/dist/svelte-core.cjs +345 -208
- package/dist/svelte-core.js +345 -208
- package/dist/svelte-src/BottomSheet.svelte +6 -0
- package/dist/svelte.cjs +359 -220
- package/dist/svelte.d.cts +2 -0
- package/dist/svelte.d.ts +2 -0
- package/dist/svelte.js +359 -220
- package/dist/teleport-7uYNiEAT.d.cts +3 -0
- package/dist/teleport-7uYNiEAT.d.ts +3 -0
- package/dist/vue.cjs +353 -209
- package/dist/vue.d.cts +3 -1
- package/dist/vue.d.ts +3 -1
- package/dist/vue.js +353 -209
- package/package.json +11 -9
package/dist/qwik.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as _builder_io_qwik from '@builder.io/qwik';
|
|
2
2
|
import { QRL } from '@builder.io/qwik';
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { T as TeleportTarget } from './teleport-7uYNiEAT.cjs';
|
|
4
|
+
import { a as SnapPointDef, b as SheetMode, c as EngineOptions, d as SheetEventMap, E as EngineState } from './BottomSheetEngine-DzsIwD28.cjs';
|
|
5
|
+
export { e as SnapPoint } from './BottomSheetEngine-DzsIwD28.cjs';
|
|
5
6
|
import './transform-jVfAikE9.cjs';
|
|
6
7
|
|
|
7
8
|
type BottomSheetProps<TId extends string = string> = {
|
|
@@ -28,11 +29,19 @@ type BottomSheetProps<TId extends string = string> = {
|
|
|
28
29
|
disableDrag?: boolean;
|
|
29
30
|
closeOnRouteChange?: boolean;
|
|
30
31
|
stackEffect?: boolean;
|
|
32
|
+
teleport?: boolean;
|
|
33
|
+
teleportTo?: TeleportTarget;
|
|
31
34
|
returnFocusTo?: EngineOptions["returnFocusTo"];
|
|
32
35
|
ariaLabel?: string;
|
|
33
36
|
radius?: string | number;
|
|
34
37
|
maxHeight?: string | number;
|
|
35
38
|
onSnap$?: QRL<(id: TId) => void>;
|
|
39
|
+
onOpen$?: QRL<(id: TId) => void>;
|
|
40
|
+
onClose$?: QRL<() => void>;
|
|
41
|
+
onOpened$?: QRL<(id: TId) => void>;
|
|
42
|
+
onClosed$?: QRL<() => void>;
|
|
43
|
+
onDragStart$?: QRL<(payload: SheetEventMap["dragstart"]) => void>;
|
|
44
|
+
onDragEnd$?: QRL<(payload: SheetEventMap["dragend"]) => void>;
|
|
36
45
|
onChange$?: QRL<(state: EngineState & {
|
|
37
46
|
activeId: TId;
|
|
38
47
|
}) => void>;
|
package/dist/qwik.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as _builder_io_qwik from '@builder.io/qwik';
|
|
2
2
|
import { QRL } from '@builder.io/qwik';
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { T as TeleportTarget } from './teleport-7uYNiEAT.js';
|
|
4
|
+
import { a as SnapPointDef, b as SheetMode, c as EngineOptions, d as SheetEventMap, E as EngineState } from './BottomSheetEngine-DRjCU73e.js';
|
|
5
|
+
export { e as SnapPoint } from './BottomSheetEngine-DRjCU73e.js';
|
|
5
6
|
import './transform-jVfAikE9.js';
|
|
6
7
|
|
|
7
8
|
type BottomSheetProps<TId extends string = string> = {
|
|
@@ -28,11 +29,19 @@ type BottomSheetProps<TId extends string = string> = {
|
|
|
28
29
|
disableDrag?: boolean;
|
|
29
30
|
closeOnRouteChange?: boolean;
|
|
30
31
|
stackEffect?: boolean;
|
|
32
|
+
teleport?: boolean;
|
|
33
|
+
teleportTo?: TeleportTarget;
|
|
31
34
|
returnFocusTo?: EngineOptions["returnFocusTo"];
|
|
32
35
|
ariaLabel?: string;
|
|
33
36
|
radius?: string | number;
|
|
34
37
|
maxHeight?: string | number;
|
|
35
38
|
onSnap$?: QRL<(id: TId) => void>;
|
|
39
|
+
onOpen$?: QRL<(id: TId) => void>;
|
|
40
|
+
onClose$?: QRL<() => void>;
|
|
41
|
+
onOpened$?: QRL<(id: TId) => void>;
|
|
42
|
+
onClosed$?: QRL<() => void>;
|
|
43
|
+
onDragStart$?: QRL<(payload: SheetEventMap["dragstart"]) => void>;
|
|
44
|
+
onDragEnd$?: QRL<(payload: SheetEventMap["dragend"]) => void>;
|
|
36
45
|
onChange$?: QRL<(state: EngineState & {
|
|
37
46
|
activeId: TId;
|
|
38
47
|
}) => void>;
|