import { CssLength } from '@breadstone/mosaik-themes'; import { type ISlottable } from '../../../Behaviors/Slottable'; import { OverlayElement } from '../Abstracts/OverlayElement'; import { ISheetElementProps } from './ISheetElementProps'; declare const SheetElement_base: (abstract new (...args: Array) => import("../../../Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Slottable").ISlottableProps & ISlottable) & typeof OverlayElement & import("../../../Behaviors/Themeable").IThemeableCtor; /** * Sheet - A bottom-sheet overlay element that slides up from the bottom of the viewport. * * @description * A gesture-driven bottom sheet that supports drag to open, close, and partial states. * Use the `height` attribute to control the initial expanded height. * * @name Sheet * @element mosaik-sheet * @category Overlays * * @slot content - The content slot for `SheetContentElement`. * @slot footer - The footer slot for `SheetFooterElement`. * @slot header - The header slot for `SheetHeaderElement`. * * @csspart backdrop - The backdrop part. * @csspart heading - The heading part. * @csspart root - The root part. * @csspart thumb - The thumb part. * * @cssprop {String} --sheet-background-color - The background color CSS custom property. * @cssprop {String} --sheet-border-color - The border color CSS custom property. * @cssprop {String} --sheet-border-width - The border width CSS custom property. * @cssprop {String} --sheet-font-family - The font family CSS custom property. * @cssprop {String} --sheet-font-letter-spacing - The font letter spacing CSS custom property. * @cssprop {String} --sheet-font-line-height - The font line height CSS custom property. * @cssprop {String} --sheet-font-size - The font size CSS custom property. * @cssprop {String} --sheet-font-text-decoration - The font text decoration CSS custom property. * @cssprop {String} --sheet-font-text-transform - The font text transform CSS custom property. * @cssprop {String} --sheet-font-weight - The font weight CSS custom property. * @cssprop {String} --sheet-foreground-color - The foreground color CSS custom property. * @cssprop {String} --sheet-gap - The gap CSS custom property. * @cssprop {String} --sheet-padding-bottom - The padding bottom CSS custom property. * @cssprop {String} --sheet-padding-left - The padding left CSS custom property. * @cssprop {String} --sheet-padding-right - The padding right CSS custom property. * @cssprop {String} --sheet-padding-top - The padding top CSS custom property. * @cssprop {String} --sheet-shadow - The shadow CSS custom property. * @cssprop {String} --sheet-shadow-blur - The shadow blur CSS custom property. * @cssprop {String} --sheet-shadow-color - The shadow color CSS custom property. * @cssprop {String} --sheet-shadow-offset-x - The shadow offset x CSS custom property. * @cssprop {String} --sheet-shadow-offset-y - The shadow offset y CSS custom property. * @cssprop {String} --sheet-shadow-spread - The shadow spread CSS custom property. * @cssprop {String} --sheet-transition-duration - The transition duration CSS custom property. * @cssprop {String} --sheet-transition-mode - The transition mode CSS custom property. * @cssprop {String} --sheet-transition-property - The transition property CSS custom property. * @cssprop {String} --sheet-translate - The translate CSS custom property. * @cssprop {String} --sheet-translate-y - The translate y CSS custom property. * * @dependency mosaik-backdrop - The Backdrop element. * * @example * Basic bottom sheet: * ```html * * ``` * * @example * Bottom sheet with custom height: * ```html * * ``` * * @public */ export declare class SheetElement extends SheetElement_base implements ISheetElementProps, ISlottable { private readonly _bounceOffset; private _height; private _dragOffset; private _positionY; private _isPartial; private _mouseDownSubscription; private _touchStartSubscription; private _mouseUpSubscription; private _touchEndSubscription; private _mouseMoveSubscription; private _touchMoveSubscription; private _clickSubscription; /** * @public */ constructor(); /** * Returns the `is` property. * The `is` property represents natural name of this element. * * @public * @static * @readonly */ static get is(): string; /** * Gets or sets the `height` property. * * @public * @attr */ get height(): CssLength; set height(value: CssLength); /** * Opens the `SheetElement`. * * @public * @override */ open(): Promise; /** * Closes the `SheetElement`. * * @public * @override */ close(): Promise; /** * Sets the sheet to a partial (peek) state, showing only the heading area. * * @public */ partial(): void; /** * Toggles between open and partial states. * * @public */ toggle(): Promise; /** * @protected * @override */ protected onApplyTemplate(): void; /** * Handles the backdrop click event. * Only closes the sheet if `clickOutsideToClose` is enabled. * * @public * @template */ onBackdrop(): void; /** * @private */ private dragMouseDown; /** * @private */ private dragMouseUp; /** * @private */ private dragMouseMove; /** * @private */ private moveDragElement; /** * @private */ private getYCoord; } /** * @public */ export declare namespace SheetElement { type Props = ISheetElementProps; } /** * @public */ declare global { interface HTMLElementTagNameMap { 'mosaik-sheet': SheetElement; } } export {}; //# sourceMappingURL=SheetElement.d.ts.map