UNPKG

@zag-js/splitter

Version:

Core logic for the splitter widget implemented as a state machine

18 lines (15 loc) 964 B
import { PanelData, NormalizedPanelData, PanelSize } from '../splitter.types.mjs'; import '@zag-js/core'; import '@zag-js/types'; import './registry.mjs'; declare function getGroupSize(rootEl: HTMLElement | null, orientation: "horizontal" | "vertical"): number; declare function parsePanelSize(size: PanelSize | undefined, rootEl: HTMLElement | null, orientation: "horizontal" | "vertical"): number | undefined; declare function toCssPanelSize(size: PanelSize | undefined): string | undefined; declare function resolvePanelSizes({ sizes, panels, rootEl, orientation, }: { sizes: PanelSize[] | undefined; panels: PanelData[]; rootEl: HTMLElement | null; orientation: "horizontal" | "vertical"; }): number[]; declare function normalizePanels(panels: PanelData[], rootEl: HTMLElement | null, orientation: "horizontal" | "vertical"): NormalizedPanelData[]; export { getGroupSize, normalizePanels, parsePanelSize, resolvePanelSizes, toCssPanelSize };