@ebay/ebayui-core
Version:
Collection of core eBay components; considered to be the building blocks for all composite structures, pages & apps.
30 lines (29 loc) • 1.05 kB
TypeScript
import type { WithNormalizedProps } from "../../global";
import { type Input as BaseInput } from "../components/ebay-dialog-base/component";
interface DrawerDialogInput extends BaseInput {
"a11y-maximize-text"?: Marko.HTMLAttributes["aria-label"];
"a11y-minimize-text"?: Marko.HTMLAttributes["aria-label"];
"no-handle"?: boolean;
expanded?: boolean;
"on-expanded"?: () => void;
"on-collapsed"?: () => void;
"on-open"?: () => void;
"on-close"?: () => void;
}
export interface Input extends WithNormalizedProps<DrawerDialogInput> {
}
interface State {
expanded: boolean;
}
declare class DrawerDialog extends Marko.Component<Input, State> {
touches: Pick<Touch, "identifier" | "pageY">[];
setExpandedState(isExpanded: boolean): void;
handleExpand(): void;
handleScroll(): void;
handleTouchStart(event: TouchEvent): void;
handleTouchMove(event: TouchEvent): void;
handleTouchEnd(event: TouchEvent): void;
onMount(): void;
onInput(input: Input): void;
}
export default DrawerDialog;