export declare const NAME = "sheet"; export declare const DATA_KEY = "bs.sheet"; export declare const EVENT_KEY = ".bs.sheet"; /** * Event names dispatched by BootstrapSheet */ export declare const EVENT: { /** Fired immediately when show() is called */ SHOW: string; /** Fired when the sheet is fully shown */ SHOWN: string; /** Fired immediately when hide() is called */ HIDE: string; /** Fired when the sheet is fully hidden */ HIDDEN: string; /** Fired continuously during drag/slide */ SLIDE: string; /** Fired after the sheet settles at a different detent */ DETENT_CHANGE: string; }; /** * Class names used by BootstrapSheet */ export declare const CLASS_NAME: { /** Applied when sheet is visible */ SHOW: string; /** Applied during show transition */ SHOWING: string; /** Applied during hide transition */ HIDING: string; /** Applied during drag operation */ DRAGGING: string; /** Applied during spring animation */ ANIMATING: string; /** Backdrop element class */ BACKDROP: string; }; /** * CSS selectors for declarative API */ export declare const SELECTOR: { /** Selector for toggle triggers */ DATA_TOGGLE: string; /** Selector for dismiss triggers */ DATA_DISMISS: string; /** * Selector for the legacy explicit drag handle * @deprecated since 0.4.0 - the whole sheet is draggable; removed in 0.5.0 */ DRAG_HANDLE: string; /** Selector for subtrees the sheet must not be dragged from */ DRAG_OPT_OUT: string; }; /** * Elements that own a drag gesture of their own, treated as implicit * `data-bs-drag="false"` zones so authors do not have to opt each one out. */ export declare const DRAG_OPT_OUT_SELECTOR: string; /** * Distance in pixels the pointer must travel before a gesture counts as a * drag. Below this threshold nothing moves and clicks land normally, which is * what makes a fully draggable sheet compatible with interactive content. */ export declare const DRAG_SLOP = 8; /** * How long after a content scroll a drag gesture stays disabled (ms). * Prevents a momentum scroll that lands at the top of the content from * immediately becoming a dismiss drag. */ export declare const SCROLL_LOCK_TIMEOUT = 100; /** * Selector for all focusable elements */ export declare const FOCUSABLE_SELECTOR: string; /** * Apple's rubber band coefficient (reverse-engineered from UIScrollView). * Controls overscroll resistance when dragging past boundaries. * @see {@link https://gist.github.com/originell/6961057} */ export declare const RUBBER_BAND_COEFFICIENT = 0.55; /** * Apple's deceleration rate for velocity projection (UIScrollView.DecelerationRate.normal). * Used to project where the sheet would come to rest after release. */ export declare const DECELERATION_RATE = 0.998; /** * Public configuration options for BootstrapSheet */ export interface BootstrapSheetOptions { /** Includes a backdrop element. Use 'static' for a backdrop that doesn't close the sheet */ backdrop?: boolean | 'static'; /** Closes the sheet when the Escape key is pressed */ keyboard?: boolean; /** Puts focus on the sheet when shown and traps focus within it */ focus?: boolean; /** Enables swipe gestures */ gestures?: boolean; /** * Resting positions of the sheet, as fractions of its height that are * visible: `1` is fully open, `0.4` shows 40 %. Values are sorted and * deduplicated; each must be greater than 0 and at most 1. * @since 0.5.0 */ detents?: number[]; /** * Detent the sheet opens at. Defaults to the smallest configured detent. * @since 0.5.0 */ initialDetent?: number | null; /** * Largest detent at which the backdrop stays transparent. At or below it * the sheet is non-modal: the background stays interactive, focus is not * trapped and an outside click does not dismiss. `null` dims proportionally * across the whole range. * @since 0.5.0 */ undimmedDetent?: number | null; /** * Damping ratio for spring animation. * - 1.0 = critically damped (no bounce, fastest convergence) * - 0.8 = slight overshoot (recommended for gesture-driven snaps) * - < 1.0 = underdamped (bouncy) * @since 0.2.0 */ springDampingRatio?: number; /** * Response time for spring animation in seconds. * Controls how fast the spring reaches its target (analogous to duration). * Converted to stiffness via: stiffness = (2π / response)² * @since 0.2.0 */ springResponse?: number; } /** * Configuration with every option resolved (defaults merged with user input) */ export type ResolvedSheetOptions = Required; /** * Default configuration options for BootstrapSheet */ export declare const Default: ResolvedSheetOptions; /** * Types of configuration options for validation */ export declare const DefaultType: Record; //# sourceMappingURL=constants.d.ts.map