|
|
|
import type { Action } from 'svelte/action'; |
|
import { type ScrollAreaState } from './create.js'; |
|
import type { ScrollAreaType } from './types.js'; |
|
import type { MeltActionReturn } from '../../internal/types.js'; |
|
import type { ScrollAreaEvents } from './events.js'; |
|
export type CreateScrollbarAction = (state: ScrollAreaState) => Action<HTMLElement>; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export declare function createBaseScrollbarAction(state: ScrollAreaState): (node: HTMLElement) => { |
|
destroy(): void; |
|
}; |
|
|
|
|
|
|
|
|
|
export declare function createAutoScrollbarAction(state: ScrollAreaState): (node: HTMLElement) => { |
|
destroy(): void; |
|
}; |
|
|
|
|
|
|
|
|
|
|
|
export declare function createHoverScrollbarAction(state: ScrollAreaState): (node: HTMLElement) => { |
|
destroy(): void; |
|
}; |
|
|
|
|
|
|
|
|
|
export declare function createScrollScrollbarAction(state: ScrollAreaState): (node: HTMLElement) => { |
|
destroy(): void; |
|
}; |
|
|
|
|
|
|
|
export declare function createScrollbarX(state: ScrollAreaState, createAction: CreateScrollbarAction): import("../../internal/helpers/index.js").MeltElement<[import("../../internal/helpers/index.js").WithGet<import("svelte/store").Writable<import("./helpers.js").Sizes>>, import("../../internal/helpers/index.js").WithGet<import("svelte/store").Writable<import("../../internal/types.js").TextDirection>>, import("../../internal/helpers/index.js").WithGet<import("svelte/store").Writable<boolean>>], (node: HTMLElement) => MeltActionReturn<ScrollAreaEvents['scrollbar']>, ([$sizes, $dir, $isVisible]: [import("./helpers.js").Sizes, import("../../internal/types.js").TextDirection, boolean]) => { |
|
style: string; |
|
'data-state': string; |
|
}, string>; |
|
|
|
|
|
|
|
export declare function createScrollbarY(state: ScrollAreaState, createAction: CreateScrollbarAction): import("../../internal/helpers/index.js").MeltElement<[import("../../internal/helpers/index.js").WithGet<import("svelte/store").Writable<import("./helpers.js").Sizes>>, import("../../internal/helpers/index.js").WithGet<import("svelte/store").Writable<import("../../internal/types.js").TextDirection>>, import("../../internal/helpers/index.js").WithGet<import("svelte/store").Writable<boolean>>], (node: HTMLElement) => MeltActionReturn<ScrollAreaEvents['scrollbar']>, ([$sizes, $dir, $isVisible]: [import("./helpers.js").Sizes, import("../../internal/types.js").TextDirection, boolean]) => { |
|
style: string; |
|
'data-state': string; |
|
}, string>; |
|
export declare function getScrollbarActionByType(type: ScrollAreaType): typeof createBaseScrollbarAction; |
|
|