@surdeddd/bottom-sheet 0.23.4 → 0.24.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 +513 -527
- package/README.ru.md +533 -545
- package/dist/{BottomSheetCore-C5tJYVMY.d.cts → BottomSheetCore-B_r4KCQL.d.cts} +48 -13
- package/dist/{BottomSheetCore-DxSrC4QC.d.ts → BottomSheetCore-B_r4KCQL.d.ts} +48 -13
- package/dist/{BottomSheetEngine-B3F9qukX.d.cts → BottomSheetEngine-0F7mjyvF.d.cts} +1 -1
- package/dist/{BottomSheetEngine-BchzgqGG.d.ts → BottomSheetEngine-CJV_DDrM.d.ts} +1 -1
- package/dist/core.cjs +810 -436
- package/dist/core.d.cts +2 -3
- package/dist/core.d.ts +2 -3
- package/dist/core.js +810 -436
- package/dist/debug.d.cts +0 -1
- package/dist/debug.d.ts +0 -1
- package/dist/{default-features-DwVTzDwP.d.ts → default-features-4Xwv6aVt.d.ts} +4 -2
- package/dist/{default-features-BGiCSmV1.d.cts → default-features-DX2NOxP6.d.cts} +4 -2
- package/dist/element.cjs +1421 -697
- package/dist/element.d.cts +11 -3
- package/dist/element.d.ts +11 -3
- package/dist/element.iife.global.js +2 -2
- package/dist/element.js +1421 -697
- package/dist/features.cjs +334 -190
- package/dist/features.d.cts +3 -4
- package/dist/features.d.ts +3 -4
- package/dist/features.js +334 -191
- package/dist/{index-C7TSQkVK.d.cts → index-2shlxhcG.d.cts} +1 -1
- package/dist/{index-CdM1tke5.d.ts → index-CNCRQnpc.d.ts} +1 -1
- package/dist/index.cjs +1129 -631
- package/dist/index.d.cts +11 -6
- package/dist/index.d.ts +11 -6
- package/dist/index.js +1129 -632
- package/dist/integrations/formik.cjs +21 -10
- package/dist/integrations/formik.d.cts +0 -1
- package/dist/integrations/formik.d.ts +0 -1
- package/dist/integrations/formik.js +22 -11
- package/dist/integrations/react-hook-form.cjs +21 -12
- package/dist/integrations/react-hook-form.d.cts +0 -1
- package/dist/integrations/react-hook-form.d.ts +0 -1
- package/dist/integrations/react-hook-form.js +21 -12
- package/dist/option-keys-DItuAjUw.d.cts +6 -0
- package/dist/option-keys-a5DYNwwO.d.ts +6 -0
- package/dist/overlay.cjs +386 -189
- package/dist/overlay.d.cts +1 -3
- package/dist/overlay.d.ts +1 -3
- package/dist/overlay.js +386 -189
- package/dist/preact.d.cts +3 -4
- package/dist/preact.d.ts +3 -4
- package/dist/qwik-lib/index.qwik.cjs +1306 -671
- package/dist/qwik-lib/index.qwik.mjs +1306 -671
- package/dist/qwik.cjs +1326 -701
- package/dist/qwik.d.cts +12 -30
- package/dist/qwik.d.ts +12 -30
- package/dist/qwik.js +1326 -701
- package/dist/react.cjs +1373 -750
- package/dist/react.d.cts +26 -12
- package/dist/react.d.ts +26 -12
- package/dist/react.js +1375 -752
- package/dist/solid.cjs +1332 -727
- package/dist/solid.d.cts +13 -438
- package/dist/solid.d.ts +13 -438
- package/dist/solid.js +1334 -729
- package/dist/solid.source.jsx +1374 -751
- package/dist/styles.css +20 -6
- package/dist/svelte-core.cjs +1209 -676
- package/dist/svelte-core.js +1207 -677
- package/dist/svelte-src/BottomSheet.svelte +101 -58
- package/dist/svelte.cjs +1323 -705
- package/dist/svelte.d.cts +45 -25
- package/dist/svelte.d.ts +45 -25
- package/dist/svelte.js +1323 -705
- package/dist/vue.cjs +1354 -773
- package/dist/vue.d.cts +20 -3
- package/dist/vue.d.ts +20 -3
- package/dist/vue.js +1354 -773
- package/dist/webgl.cjs +38 -7
- package/dist/webgl.d.cts +0 -1
- package/dist/webgl.d.ts +0 -1
- package/dist/webgl.js +38 -7
- package/llms.txt +330 -0
- package/package.json +41 -19
- package/dist/transform-jVfAikE9.d.cts +0 -3
- package/dist/transform-jVfAikE9.d.ts +0 -3
package/dist/qwik.d.cts
CHANGED
|
@@ -1,44 +1,26 @@
|
|
|
1
1
|
import * as _builder_io_qwik from '@builder.io/qwik';
|
|
2
2
|
import { QRL } from '@builder.io/qwik';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { TeleportTarget } from './index.cjs';
|
|
4
|
+
import { EngineConfig } from './index.cjs';
|
|
5
|
+
import { e as SnapPointDef, d as EngineState } from './BottomSheetCore-B_r4KCQL.cjs';
|
|
5
6
|
import { SheetEventMap } from './core.cjs';
|
|
6
|
-
export { h as SnapPoint } from './BottomSheetCore-
|
|
7
|
-
import './transform-jVfAikE9.cjs';
|
|
7
|
+
export { f as EngineOptions, g as SheetMode, h as SnapPoint } from './BottomSheetCore-B_r4KCQL.cjs';
|
|
8
8
|
|
|
9
|
-
type
|
|
9
|
+
type Serialisable = Omit<Partial<EngineConfig>, "snapPoints" | "allowed" | "initial" | "easing" | "linkedSheets" | "features">;
|
|
10
|
+
type BottomSheetProps<TId extends string = string> = Serialisable & {
|
|
10
11
|
snapPoints: SnapPointDef<TId>[] | ReadonlyArray<SnapPointDef<TId>>;
|
|
11
12
|
allowed?: TId[] | ReadonlyArray<TId>;
|
|
12
13
|
initial?: TId;
|
|
13
|
-
mode?: SheetMode;
|
|
14
|
-
animation?: EngineOptions["animation"];
|
|
15
|
-
spring?: {
|
|
16
|
-
stiffness?: number;
|
|
17
|
-
damping?: number;
|
|
18
|
-
mass?: number;
|
|
19
|
-
};
|
|
20
|
-
focusTrap?: boolean;
|
|
21
|
-
closeOnEscape?: boolean;
|
|
22
|
-
closeOnBack?: boolean;
|
|
23
|
-
lockBodyScroll?: boolean;
|
|
24
|
-
rubberBand?: boolean;
|
|
25
|
-
backdropRange?: [number, number];
|
|
26
14
|
backdrop?: boolean;
|
|
27
15
|
closeOnBackdrop?: boolean;
|
|
28
|
-
persistent?: boolean;
|
|
29
|
-
disableClose?: boolean;
|
|
30
|
-
disableDrag?: boolean;
|
|
31
|
-
dragFrom?: EngineOptions["dragFrom"];
|
|
32
|
-
dragFromContent?: boolean;
|
|
33
|
-
fitContentToSnap?: boolean;
|
|
34
|
-
closeOnRouteChange?: boolean;
|
|
35
|
-
stackEffect?: boolean;
|
|
36
16
|
teleport?: boolean;
|
|
37
17
|
teleportTo?: TeleportTarget;
|
|
38
|
-
returnFocusTo?: EngineOptions["returnFocusTo"];
|
|
39
18
|
ariaLabel?: string;
|
|
40
|
-
|
|
41
|
-
|
|
19
|
+
handleLabel?: string;
|
|
20
|
+
contentLabel?: string;
|
|
21
|
+
open?: boolean;
|
|
22
|
+
onOpenChange$?: QRL<(open: boolean) => void>;
|
|
23
|
+
snap?: TId;
|
|
42
24
|
onSnap$?: QRL<(id: TId) => void>;
|
|
43
25
|
onOpen$?: QRL<(id: TId) => void>;
|
|
44
26
|
onClose$?: QRL<() => void>;
|
|
@@ -52,5 +34,5 @@ type BottomSheetProps<TId extends string = string> = {
|
|
|
52
34
|
};
|
|
53
35
|
declare const BottomSheet: _builder_io_qwik.Component<BottomSheetProps<string>>;
|
|
54
36
|
|
|
55
|
-
export { BottomSheet,
|
|
37
|
+
export { BottomSheet, EngineState, SnapPointDef };
|
|
56
38
|
export type { BottomSheetProps };
|
package/dist/qwik.d.ts
CHANGED
|
@@ -1,44 +1,26 @@
|
|
|
1
1
|
import * as _builder_io_qwik from '@builder.io/qwik';
|
|
2
2
|
import { QRL } from '@builder.io/qwik';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { TeleportTarget } from './index.js';
|
|
4
|
+
import { EngineConfig } from './index.js';
|
|
5
|
+
import { e as SnapPointDef, d as EngineState } from './BottomSheetCore-B_r4KCQL.js';
|
|
5
6
|
import { SheetEventMap } from './core.js';
|
|
6
|
-
export { h as SnapPoint } from './BottomSheetCore-
|
|
7
|
-
import './transform-jVfAikE9.js';
|
|
7
|
+
export { f as EngineOptions, g as SheetMode, h as SnapPoint } from './BottomSheetCore-B_r4KCQL.js';
|
|
8
8
|
|
|
9
|
-
type
|
|
9
|
+
type Serialisable = Omit<Partial<EngineConfig>, "snapPoints" | "allowed" | "initial" | "easing" | "linkedSheets" | "features">;
|
|
10
|
+
type BottomSheetProps<TId extends string = string> = Serialisable & {
|
|
10
11
|
snapPoints: SnapPointDef<TId>[] | ReadonlyArray<SnapPointDef<TId>>;
|
|
11
12
|
allowed?: TId[] | ReadonlyArray<TId>;
|
|
12
13
|
initial?: TId;
|
|
13
|
-
mode?: SheetMode;
|
|
14
|
-
animation?: EngineOptions["animation"];
|
|
15
|
-
spring?: {
|
|
16
|
-
stiffness?: number;
|
|
17
|
-
damping?: number;
|
|
18
|
-
mass?: number;
|
|
19
|
-
};
|
|
20
|
-
focusTrap?: boolean;
|
|
21
|
-
closeOnEscape?: boolean;
|
|
22
|
-
closeOnBack?: boolean;
|
|
23
|
-
lockBodyScroll?: boolean;
|
|
24
|
-
rubberBand?: boolean;
|
|
25
|
-
backdropRange?: [number, number];
|
|
26
14
|
backdrop?: boolean;
|
|
27
15
|
closeOnBackdrop?: boolean;
|
|
28
|
-
persistent?: boolean;
|
|
29
|
-
disableClose?: boolean;
|
|
30
|
-
disableDrag?: boolean;
|
|
31
|
-
dragFrom?: EngineOptions["dragFrom"];
|
|
32
|
-
dragFromContent?: boolean;
|
|
33
|
-
fitContentToSnap?: boolean;
|
|
34
|
-
closeOnRouteChange?: boolean;
|
|
35
|
-
stackEffect?: boolean;
|
|
36
16
|
teleport?: boolean;
|
|
37
17
|
teleportTo?: TeleportTarget;
|
|
38
|
-
returnFocusTo?: EngineOptions["returnFocusTo"];
|
|
39
18
|
ariaLabel?: string;
|
|
40
|
-
|
|
41
|
-
|
|
19
|
+
handleLabel?: string;
|
|
20
|
+
contentLabel?: string;
|
|
21
|
+
open?: boolean;
|
|
22
|
+
onOpenChange$?: QRL<(open: boolean) => void>;
|
|
23
|
+
snap?: TId;
|
|
42
24
|
onSnap$?: QRL<(id: TId) => void>;
|
|
43
25
|
onOpen$?: QRL<(id: TId) => void>;
|
|
44
26
|
onClose$?: QRL<() => void>;
|
|
@@ -52,5 +34,5 @@ type BottomSheetProps<TId extends string = string> = {
|
|
|
52
34
|
};
|
|
53
35
|
declare const BottomSheet: _builder_io_qwik.Component<BottomSheetProps<string>>;
|
|
54
36
|
|
|
55
|
-
export { BottomSheet,
|
|
37
|
+
export { BottomSheet, EngineState, SnapPointDef };
|
|
56
38
|
export type { BottomSheetProps };
|