@surdeddd/bottom-sheet 0.23.2 → 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.
- package/README.md +18 -16
- package/README.ru.md +697 -0
- package/dist/{BottomSheetCore-CQStdVy2.d.cts → BottomSheetCore-C5tJYVMY.d.cts} +4 -1
- package/dist/{BottomSheetCore-9i-Uh6T3.d.ts → BottomSheetCore-DxSrC4QC.d.ts} +4 -1
- package/dist/{BottomSheetEngine-CsQWHLNb.d.cts → BottomSheetEngine-B3F9qukX.d.cts} +1 -1
- package/dist/{BottomSheetEngine-Dn6h-7gF.d.ts → BottomSheetEngine-BchzgqGG.d.ts} +1 -1
- package/dist/core.cjs +43 -13
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +43 -13
- package/dist/debug.d.cts +3 -2
- package/dist/debug.d.ts +3 -2
- package/dist/{default-features-DkG9aho0.d.cts → default-features-BGiCSmV1.d.cts} +1 -1
- package/dist/{default-features-C3cilcW9.d.ts → default-features-DwVTzDwP.d.ts} +1 -1
- package/dist/element.cjs +107 -21
- package/dist/element.d.cts +5 -3
- package/dist/element.d.ts +5 -3
- package/dist/element.iife.global.js +2 -2
- package/dist/element.js +107 -21
- package/dist/features.cjs +56 -3
- package/dist/features.d.cts +3 -3
- package/dist/features.d.ts +3 -3
- package/dist/features.js +56 -3
- package/dist/{index-CnsJQZp2.d.ts → index-C7TSQkVK.d.cts} +3 -2
- package/dist/{index-CVGC5B5D.d.cts → index-CdM1tke5.d.ts} +3 -2
- package/dist/index.cjs +96 -16
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +96 -16
- package/dist/integrations/formik.d.cts +3 -2
- package/dist/integrations/formik.d.ts +3 -2
- package/dist/integrations/react-hook-form.d.cts +3 -2
- package/dist/integrations/react-hook-form.d.ts +3 -2
- package/dist/overlay.d.cts +2 -1
- package/dist/overlay.d.ts +2 -1
- package/dist/preact.d.cts +2 -2
- package/dist/preact.d.ts +2 -2
- package/dist/qwik-lib/index.qwik.cjs +87 -16
- package/dist/qwik-lib/index.qwik.mjs +87 -16
- package/dist/qwik.cjs +96 -16
- package/dist/qwik.d.cts +5 -3
- package/dist/qwik.d.ts +5 -3
- package/dist/qwik.js +96 -16
- package/dist/react.cjs +96 -16
- package/dist/react.d.cts +8 -5
- package/dist/react.d.ts +8 -5
- package/dist/react.js +96 -16
- package/dist/solid.cjs +96 -16
- package/dist/solid.d.cts +4 -1
- package/dist/solid.d.ts +4 -1
- package/dist/solid.js +96 -16
- package/dist/solid.source.jsx +96 -16
- package/dist/svelte-core.cjs +98 -16
- package/dist/svelte-core.js +97 -17
- package/dist/svelte-src/BottomSheet.svelte +1 -1
- package/dist/svelte.cjs +97 -18
- package/dist/svelte.js +97 -18
- package/dist/vue.cjs +96 -16
- package/dist/vue.js +96 -16
- package/dist/webgl.d.cts +3 -2
- package/dist/webgl.d.ts +3 -2
- package/package.json +32 -34
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @surdeddd/bottom-sheet
|
|
2
2
|
|
|
3
|
+
Русская версия: [README.ru.md](https://github.com/Surdeddd/BottomSheet/blob/main/README.ru.md)
|
|
4
|
+
|
|
3
5
|
> Universal, headless bottom-sheet engine. **One core, eight adapters, GPU-accelerated, fully tested.**
|
|
4
6
|
|
|
5
7
|

|
|
@@ -338,17 +340,17 @@ and emits its open sequence once on reveal. See
|
|
|
338
340
|
The scrim is the dim layer behind/around the sheet (`screenComponent`). All
|
|
339
341
|
scrim properties can be mutated at runtime — no remount needed.
|
|
340
342
|
|
|
341
|
-
| Method
|
|
342
|
-
|
|
|
343
|
-
| `setScrimMode('full'
|
|
344
|
-
| `setScrimEnabled(boolean)`
|
|
345
|
-
| `setScrimTapToClose(boolean)`
|
|
346
|
-
| `setScrimColor(color
|
|
347
|
-
| `setScrimInteractive(boolean)`
|
|
348
|
-
| `setBackdropRange([s, e])` / `setScreenRange([s, e])`
|
|
349
|
-
| `setScrim({ ... })`
|
|
350
|
-
| `setScrimOverlay({ children, position, interactive })` | Inject a positioned floating element into the scrim area. Returns a teardown. Useful for monitoring-style "dim everything except this badge" UX. |
|
|
351
|
-
| `getScrimState()`
|
|
343
|
+
| Method | Purpose |
|
|
344
|
+
| --- | --- |
|
|
345
|
+
| `setScrimMode('full' \| 'above-sheet' \| 'off')` | Switch positioning at runtime. `'off'` fully disables the scrim layer. |
|
|
346
|
+
| `setScrimEnabled(boolean)` | Convenience switch — stashes/restores opacity ranges. |
|
|
347
|
+
| `setScrimTapToClose(boolean)` | Install/teardown click-to-close on the scrim. |
|
|
348
|
+
| `setScrimColor(color \| null)` / `setScrimBlur(blur \| null)` | Live color & backdrop-filter blur. `null` clears. |
|
|
349
|
+
| `setScrimInteractive(boolean)` | Toggle `pointer-events` on the scrim layer. |
|
|
350
|
+
| `setBackdropRange([s, e])` / `setScreenRange([s, e])` | Opacity-range mapping (progress 0..1 → opacity 0..1). |
|
|
351
|
+
| `setScrim({ ... })` | Batch — applies preset + individual fields in one pass with a single `applySize`. |
|
|
352
|
+
| `setScrimOverlay({ children, position, interactive })` | Inject a positioned floating element into the scrim area. Returns a teardown. Useful for monitoring-style "dim everything except this badge" UX. |
|
|
353
|
+
| `getScrimState()` | Read-only `{ mode, enabled }` snapshot. Stable public API for introspection without coupling to internals. |
|
|
352
354
|
|
|
353
355
|
**Presets**: `'subtle' | 'standard' | 'monitoring' | 'cinematic'` — use via `scrimPreset` constructor option or `setScrim({ preset })`.
|
|
354
356
|
|
|
@@ -357,11 +359,11 @@ scrim properties can be mutated at runtime — no remount needed.
|
|
|
357
359
|
The overlay engine (`@surdeddd/bottom-sheet/overlay`) is a standalone slide-up
|
|
358
360
|
panel that mirrors the scrim's runtime-mutability story for content.
|
|
359
361
|
|
|
360
|
-
| Method
|
|
361
|
-
|
|
|
362
|
-
| `setOverlayChildren(node
|
|
363
|
-
| `clearOverlayChildren()`
|
|
364
|
-
| `setOverlay({ children, ... })` | Batch update — `children` is one of the accepted fields alongside positioning/preset overrides. |
|
|
362
|
+
| Method | Purpose |
|
|
363
|
+
| --- | --- |
|
|
364
|
+
| `setOverlayChildren(node \| fragment \| factory)` | Replace overlay contents at runtime. Pass a `Node`, a `DocumentFragment`, or a `() => Node` factory. |
|
|
365
|
+
| `clearOverlayChildren()` | Remove any injected content. |
|
|
366
|
+
| `setOverlay({ children, ... })` | Batch update — `children` is one of the accepted fields alongside positioning/preset overrides. |
|
|
365
367
|
|
|
366
368
|
**Presets**: `OverlayPreset` is `'sheet' | 'dialog' | 'sidebar' | 'toast'` —
|
|
367
369
|
exposed as the `OVERLAY_PRESETS` const map and accepted by `setOverlay({ preset })`.
|