@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
@@ -425,4 +425,5 @@ declare class BottomSheetCore {
425
425
  private handleClose;
426
426
  }
427
427
 
428
- export { type AnchorOptions as A, BottomSheetCore as B, type CloseReason as C, type EngineFeature as E, type LogicalSheetMode as L, type PhysicalSheetMode as P, type SheetEventMap as S, type TeardownScope as T, type EngineFeatureContext as a, type EngineFeatureOptions as b, type EngineFeatureStage as c, type EngineState as d, type SnapPointDef as e, type SheetMode as f, type EngineOptions as g, type SnapPoint as h, type ScrimStagesOptions as i, type ScrimOverlayPosition as j, type AnchorAnimationPreset as k, type AnchorAnimationSpec as l, type AnchorHandle as m, type AnchorPosition as n, type AnchorState as o, type Plugin as p, SCRIM_PRESETS as q, type ScrimOverlayOptions as r, type ScrimPreset as s, type ScrimPresetConfig as t, type ScrimStageDef as u, type ScrimUpdate as v, type SnapId as w, runAnchorTransition as x };
428
+ export { BottomSheetCore as B, SCRIM_PRESETS as q, runAnchorTransition as x };
429
+ export type { AnchorOptions as A, CloseReason as C, EngineFeature as E, LogicalSheetMode as L, PhysicalSheetMode as P, SheetEventMap as S, TeardownScope as T, EngineFeatureContext as a, EngineFeatureOptions as b, EngineFeatureStage as c, EngineState as d, SnapPointDef as e, SheetMode as f, EngineOptions as g, SnapPoint as h, ScrimStagesOptions as i, ScrimOverlayPosition as j, AnchorAnimationPreset as k, AnchorAnimationSpec as l, AnchorHandle as m, AnchorPosition as n, AnchorState as o, Plugin as p, ScrimOverlayOptions as r, ScrimPreset as s, ScrimPresetConfig as t, ScrimStageDef as u, ScrimUpdate as v, SnapId as w };
@@ -425,4 +425,5 @@ declare class BottomSheetCore {
425
425
  private handleClose;
426
426
  }
427
427
 
428
- export { type AnchorOptions as A, BottomSheetCore as B, type CloseReason as C, type EngineFeature as E, type LogicalSheetMode as L, type PhysicalSheetMode as P, type SheetEventMap as S, type TeardownScope as T, type EngineFeatureContext as a, type EngineFeatureOptions as b, type EngineFeatureStage as c, type EngineState as d, type SnapPointDef as e, type SheetMode as f, type EngineOptions as g, type SnapPoint as h, type ScrimStagesOptions as i, type ScrimOverlayPosition as j, type AnchorAnimationPreset as k, type AnchorAnimationSpec as l, type AnchorHandle as m, type AnchorPosition as n, type AnchorState as o, type Plugin as p, SCRIM_PRESETS as q, type ScrimOverlayOptions as r, type ScrimPreset as s, type ScrimPresetConfig as t, type ScrimStageDef as u, type ScrimUpdate as v, type SnapId as w, runAnchorTransition as x };
428
+ export { BottomSheetCore as B, SCRIM_PRESETS as q, runAnchorTransition as x };
429
+ export type { AnchorOptions as A, CloseReason as C, EngineFeature as E, LogicalSheetMode as L, PhysicalSheetMode as P, SheetEventMap as S, TeardownScope as T, EngineFeatureContext as a, EngineFeatureOptions as b, EngineFeatureStage as c, EngineState as d, SnapPointDef as e, SheetMode as f, EngineOptions as g, SnapPoint as h, ScrimStagesOptions as i, ScrimOverlayPosition as j, AnchorAnimationPreset as k, AnchorAnimationSpec as l, AnchorHandle as m, AnchorPosition as n, AnchorState as o, Plugin as p, ScrimOverlayOptions as r, ScrimPreset as s, ScrimPresetConfig as t, ScrimStageDef as u, ScrimUpdate as v, SnapId as w };
@@ -1,4 +1,4 @@
1
- import { B as BottomSheetCore, g as EngineOptions } from './BottomSheetCore-CaJwHnxY.cjs';
1
+ import { B as BottomSheetCore, g as EngineOptions } from './BottomSheetCore-C5tJYVMY.cjs';
2
2
 
3
3
  declare class BottomSheetEngine extends BottomSheetCore {
4
4
  constructor(opts: EngineOptions);
@@ -1,4 +1,4 @@
1
- import { B as BottomSheetCore, g as EngineOptions } from './BottomSheetCore-COvILxmR.js';
1
+ import { B as BottomSheetCore, g as EngineOptions } from './BottomSheetCore-DxSrC4QC.js';
2
2
 
3
3
  declare class BottomSheetEngine extends BottomSheetCore {
4
4
  constructor(opts: EngineOptions);
package/dist/core.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { B as BottomSheetCore, C as CloseReason, E as EngineFeature, a as EngineFeatureContext, b as EngineFeatureOptions, c as EngineFeatureStage, g as EngineOptions, d as EngineState, S as SheetEventMap, f as SheetMode, w as SnapId, h as SnapPoint, e as SnapPointDef } from './BottomSheetCore-CaJwHnxY.cjs';
2
- export { R as ResolvedSnap } from './index-BBrJJjy5.cjs';
1
+ export { B as BottomSheetCore, C as CloseReason, E as EngineFeature, a as EngineFeatureContext, b as EngineFeatureOptions, c as EngineFeatureStage, g as EngineOptions, d as EngineState, S as SheetEventMap, f as SheetMode, w as SnapId, h as SnapPoint, e as SnapPointDef } from './BottomSheetCore-C5tJYVMY.cjs';
2
+ export { R as ResolvedSnap } from './index-C7TSQkVK.cjs';
3
3
  import './transform-jVfAikE9.cjs';
package/dist/core.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { B as BottomSheetCore, C as CloseReason, E as EngineFeature, a as EngineFeatureContext, b as EngineFeatureOptions, c as EngineFeatureStage, g as EngineOptions, d as EngineState, S as SheetEventMap, f as SheetMode, w as SnapId, h as SnapPoint, e as SnapPointDef } from './BottomSheetCore-COvILxmR.js';
2
- export { R as ResolvedSnap } from './index-CXN7t3rr.js';
1
+ export { B as BottomSheetCore, C as CloseReason, E as EngineFeature, a as EngineFeatureContext, b as EngineFeatureOptions, c as EngineFeatureStage, g as EngineOptions, d as EngineState, S as SheetEventMap, f as SheetMode, w as SnapId, h as SnapPoint, e as SnapPointDef } from './BottomSheetCore-DxSrC4QC.js';
2
+ export { R as ResolvedSnap } from './index-CdM1tke5.js';
3
3
  import './transform-jVfAikE9.js';
package/dist/debug.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { d as EngineState, S as SheetEventMap } from './BottomSheetCore-CaJwHnxY.cjs';
1
+ import { EngineState, SheetEventMap } from './core.cjs';
2
2
  import './transform-jVfAikE9.cjs';
3
3
 
4
4
  type DebugOverlayPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right";
@@ -19,4 +19,5 @@ type DebuggableEngine = {
19
19
  };
20
20
  declare function attachDebugOverlay(engine: DebuggableEngine, opts?: DebugOverlayOptions): () => void;
21
21
 
22
- export { type DebugOverlayOptions, type DebugOverlayPosition, type DebuggableEngine, attachDebugOverlay };
22
+ export { attachDebugOverlay };
23
+ export type { DebugOverlayOptions, DebugOverlayPosition, DebuggableEngine };
package/dist/debug.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { d as EngineState, S as SheetEventMap } from './BottomSheetCore-COvILxmR.js';
1
+ import { EngineState, SheetEventMap } from './core.js';
2
2
  import './transform-jVfAikE9.js';
3
3
 
4
4
  type DebugOverlayPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right";
@@ -19,4 +19,5 @@ type DebuggableEngine = {
19
19
  };
20
20
  declare function attachDebugOverlay(engine: DebuggableEngine, opts?: DebugOverlayOptions): () => void;
21
21
 
22
- export { type DebugOverlayOptions, type DebugOverlayPosition, type DebuggableEngine, attachDebugOverlay };
22
+ export { attachDebugOverlay };
23
+ export type { DebugOverlayOptions, DebugOverlayPosition, DebuggableEngine };
@@ -1,4 +1,4 @@
1
- import { E as EngineFeature } from './BottomSheetCore-CaJwHnxY.cjs';
1
+ import { E as EngineFeature } from './BottomSheetCore-C5tJYVMY.cjs';
2
2
 
3
3
  declare function routeFeature(): EngineFeature;
4
4
  declare function persistFeature(): EngineFeature;
@@ -1,4 +1,4 @@
1
- import { E as EngineFeature } from './BottomSheetCore-COvILxmR.js';
1
+ import { E as EngineFeature } from './BottomSheetCore-DxSrC4QC.js';
2
2
 
3
3
  declare function routeFeature(): EngineFeature;
4
4
  declare function persistFeature(): EngineFeature;
package/dist/element.cjs CHANGED
@@ -3,8 +3,13 @@
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __esm = (fn, res) => function __init() {
7
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
6
+ var __esm = (fn, res, err) => function __init() {
7
+ if (err) throw err[0];
8
+ try {
9
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
+ } catch (e) {
11
+ throw err = [e], e;
12
+ }
8
13
  };
9
14
  var __export = (target, all) => {
10
15
  for (var name in all)
@@ -1,5 +1,6 @@
1
- import { B as BottomSheetEngine } from './BottomSheetEngine-C_1aPJsU.cjs';
2
- import { C as CloseReason, A as AnchorOptions, i as ScrimStagesOptions, d as EngineState } from './BottomSheetCore-CaJwHnxY.cjs';
1
+ import { BottomSheetEngine } from './index.cjs';
2
+ import { CloseReason, EngineState } from './core.cjs';
3
+ import { AnchorOptions, ScrimStagesOptions } from './index.cjs';
3
4
  import './transform-jVfAikE9.cjs';
4
5
 
5
6
  declare const BaseHTMLElement: typeof HTMLElement;
@@ -58,4 +59,5 @@ type TypedBottomSheetElement<TId extends string = string> = HTMLElement & {
58
59
  };
59
60
  declare const defineBottomSheet: (tag?: string) => void;
60
61
 
61
- export { BottomSheetElement, type TypedBottomSheetElement, defineBottomSheet };
62
+ export { BottomSheetElement, defineBottomSheet };
63
+ export type { TypedBottomSheetElement };
package/dist/element.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { B as BottomSheetEngine } from './BottomSheetEngine-CsgCcCSO.js';
2
- import { C as CloseReason, A as AnchorOptions, i as ScrimStagesOptions, d as EngineState } from './BottomSheetCore-COvILxmR.js';
1
+ import { BottomSheetEngine } from './index.js';
2
+ import { CloseReason, EngineState } from './core.js';
3
+ import { AnchorOptions, ScrimStagesOptions } from './index.js';
3
4
  import './transform-jVfAikE9.js';
4
5
 
5
6
  declare const BaseHTMLElement: typeof HTMLElement;
@@ -58,4 +59,5 @@ type TypedBottomSheetElement<TId extends string = string> = HTMLElement & {
58
59
  };
59
60
  declare const defineBottomSheet: (tag?: string) => void;
60
61
 
61
- export { BottomSheetElement, type TypedBottomSheetElement, defineBottomSheet };
62
+ export { BottomSheetElement, defineBottomSheet };
63
+ export type { TypedBottomSheetElement };