@surdeddd/bottom-sheet 0.1.0 → 0.3.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 +57 -21
- package/dist/BottomSheetEngine-CAymrH-P.d.cts +285 -0
- package/dist/BottomSheetEngine-DcqcuudN.d.ts +285 -0
- package/dist/element.cjs +775 -537
- package/dist/element.d.cts +9 -57
- package/dist/element.d.ts +9 -57
- package/dist/element.iife.global.js +2 -2
- package/dist/element.js +775 -537
- package/dist/index.cjs +760 -600
- package/dist/index.d.cts +18 -85
- package/dist/index.d.ts +18 -85
- package/dist/index.js +758 -601
- package/dist/integrations/formik.d.cts +2 -8
- package/dist/integrations/formik.d.ts +2 -8
- package/dist/integrations/react-hook-form.d.cts +2 -11
- package/dist/integrations/react-hook-form.d.ts +2 -11
- package/dist/overlay.cjs +168 -122
- package/dist/overlay.d.cts +14 -137
- package/dist/overlay.d.ts +14 -137
- package/dist/overlay.js +168 -122
- package/dist/preact.d.cts +2 -2
- package/dist/preact.d.ts +2 -2
- package/dist/preact.js +0 -1
- package/dist/qwik.cjs +667 -519
- package/dist/qwik.d.cts +3 -24
- package/dist/qwik.d.ts +3 -24
- package/dist/qwik.js +668 -520
- package/dist/react.cjs +873 -648
- package/dist/react.d.cts +34 -159
- package/dist/react.d.ts +34 -159
- package/dist/react.js +873 -648
- package/dist/solid.cjs +703 -560
- package/dist/solid.d.cts +264 -32
- package/dist/solid.d.ts +264 -32
- package/dist/solid.js +704 -561
- package/dist/solid.source.jsx +3215 -0
- package/dist/styles.css +37 -112
- package/dist/svelte-core.cjs +3149 -0
- package/dist/svelte-core.js +3147 -0
- package/dist/svelte-src/BottomSheet.svelte +210 -0
- package/dist/svelte-src/index.js +2 -0
- package/dist/svelte.cjs +718 -547
- package/dist/svelte.d.cts +100 -0
- package/dist/svelte.d.ts +15 -4
- package/dist/svelte.js +719 -548
- package/dist/themes/ios.css +0 -3
- package/dist/themes/material.css +0 -3
- package/dist/themes/vercel.css +0 -3
- package/dist/{transform-Brkf-wzo.d.cts → transform-jVfAikE9.d.cts} +0 -1
- package/dist/{transform-Brkf-wzo.d.ts → transform-jVfAikE9.d.ts} +0 -1
- package/dist/vue.cjs +677 -526
- package/dist/vue.d.cts +78 -0
- package/dist/vue.d.ts +12 -2
- package/dist/vue.js +678 -527
- package/package.json +105 -45
- package/dist/BottomSheetEngine-CvSVbo6c.d.cts +0 -704
- package/dist/BottomSheetEngine-DbO8rW_3.d.ts +0 -704
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../transform-
|
|
1
|
+
import { e as SheetEventMap } from '../BottomSheetEngine-CAymrH-P.cjs';
|
|
2
|
+
import '../transform-jVfAikE9.cjs';
|
|
3
3
|
|
|
4
4
|
type FormikStateLike = {
|
|
5
5
|
dirty: boolean;
|
|
@@ -16,12 +16,6 @@ type SheetGuardRef = {
|
|
|
16
16
|
type FormikRefLike = {
|
|
17
17
|
current: FormikStateLike | null | undefined;
|
|
18
18
|
};
|
|
19
|
-
/**
|
|
20
|
-
* Formik counterpart to useFormGuard — takes a `ref<FormikProps>` because
|
|
21
|
-
* Formik's render-prop API doesn't surface props at hook-call time the way
|
|
22
|
-
* useForm() does. Use `<Formik innerRef={formikRef}>` or stash `useFormik()`
|
|
23
|
-
* on a ref yourself.
|
|
24
|
-
*/
|
|
25
19
|
declare function useFormikGuard<Values extends Record<string, unknown> = Record<string, unknown>>(sheetRef: SheetGuardRef, formikRef: FormikRefLike, _tag?: Values): void;
|
|
26
20
|
|
|
27
21
|
export { type FormikRefLike, type FormikStateLike, type SheetEventTarget, type SheetGuardRef, useFormikGuard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../transform-
|
|
1
|
+
import { e as SheetEventMap } from '../BottomSheetEngine-DcqcuudN.js';
|
|
2
|
+
import '../transform-jVfAikE9.js';
|
|
3
3
|
|
|
4
4
|
type FormikStateLike = {
|
|
5
5
|
dirty: boolean;
|
|
@@ -16,12 +16,6 @@ type SheetGuardRef = {
|
|
|
16
16
|
type FormikRefLike = {
|
|
17
17
|
current: FormikStateLike | null | undefined;
|
|
18
18
|
};
|
|
19
|
-
/**
|
|
20
|
-
* Formik counterpart to useFormGuard — takes a `ref<FormikProps>` because
|
|
21
|
-
* Formik's render-prop API doesn't surface props at hook-call time the way
|
|
22
|
-
* useForm() does. Use `<Formik innerRef={formikRef}>` or stash `useFormik()`
|
|
23
|
-
* on a ref yourself.
|
|
24
|
-
*/
|
|
25
19
|
declare function useFormikGuard<Values extends Record<string, unknown> = Record<string, unknown>>(sheetRef: SheetGuardRef, formikRef: FormikRefLike, _tag?: Values): void;
|
|
26
20
|
|
|
27
21
|
export { type FormikRefLike, type FormikStateLike, type SheetEventTarget, type SheetGuardRef, useFormikGuard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../transform-
|
|
1
|
+
import { e as SheetEventMap } from '../BottomSheetEngine-CAymrH-P.cjs';
|
|
2
|
+
import '../transform-jVfAikE9.cjs';
|
|
3
3
|
|
|
4
4
|
type RhfFormStateLike = {
|
|
5
5
|
formState: {
|
|
@@ -16,15 +16,6 @@ type SheetGuardRef = {
|
|
|
16
16
|
} | {
|
|
17
17
|
readonly current: SheetEventTarget | null | undefined;
|
|
18
18
|
};
|
|
19
|
-
/**
|
|
20
|
-
* Gates close attempts behind react-hook-form's `isDirty` / `isSubmitting`.
|
|
21
|
-
* Cancels closing while the form is dirty (consumer prompts then re-calls
|
|
22
|
-
* close) and cancels every snap while submit is in flight.
|
|
23
|
-
*
|
|
24
|
-
* The `methods` argument is read through a ref refreshed each render, so a
|
|
25
|
-
* freshly-constructed `useForm()` return on each parent render is safe —
|
|
26
|
-
* the listener always reads live form state, never a closure-captured one.
|
|
27
|
-
*/
|
|
28
19
|
declare function useFormGuard<TFieldValues extends Record<string, unknown> = Record<string, unknown>>(sheetRef: SheetGuardRef, methods: RhfFormStateLike, _tag?: TFieldValues): void;
|
|
29
20
|
|
|
30
21
|
export { type RhfFormStateLike, type SheetEventTarget, type SheetGuardRef, useFormGuard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../transform-
|
|
1
|
+
import { e as SheetEventMap } from '../BottomSheetEngine-DcqcuudN.js';
|
|
2
|
+
import '../transform-jVfAikE9.js';
|
|
3
3
|
|
|
4
4
|
type RhfFormStateLike = {
|
|
5
5
|
formState: {
|
|
@@ -16,15 +16,6 @@ type SheetGuardRef = {
|
|
|
16
16
|
} | {
|
|
17
17
|
readonly current: SheetEventTarget | null | undefined;
|
|
18
18
|
};
|
|
19
|
-
/**
|
|
20
|
-
* Gates close attempts behind react-hook-form's `isDirty` / `isSubmitting`.
|
|
21
|
-
* Cancels closing while the form is dirty (consumer prompts then re-calls
|
|
22
|
-
* close) and cancels every snap while submit is in flight.
|
|
23
|
-
*
|
|
24
|
-
* The `methods` argument is read through a ref refreshed each render, so a
|
|
25
|
-
* freshly-constructed `useForm()` return on each parent render is safe —
|
|
26
|
-
* the listener always reads live form state, never a closure-captured one.
|
|
27
|
-
*/
|
|
28
19
|
declare function useFormGuard<TFieldValues extends Record<string, unknown> = Record<string, unknown>>(sheetRef: SheetGuardRef, methods: RhfFormStateLike, _tag?: TFieldValues): void;
|
|
29
20
|
|
|
30
21
|
export { type RhfFormStateLike, type SheetEventTarget, type SheetGuardRef, useFormGuard };
|