/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * The Sheet's Library in a phone's view (`Mobile Sheet Spec.md` SH11, R7): no * drag there, so each tab says what a tap does and lists a 44px row a card. A * tap on an author's card sets it on the selected row or band, as its drop * does, its row marked `current` while the target holds it; a tap on a template * adds it below the selected row, as its ⏎ does. A tap on a column closes the * view and pages the window to it, its eye still hiding it. A tab with nothing * to list, whatever its filters, keeps the Library's own empty state. * * @packageDocumentation */ import { type ReactNode } from "react"; import { type LibraryItemValue } from "@elaraai/east-ui-components"; /** Props of {@link PhoneCards}. */ export interface PhoneCardsProps { /** The tab's library: what its cards drop from. */ library: string; /** What the hint says: a tap sets an author's card, or adds a template. */ verb: "set" | "add"; /** Its cards, as the Library lists them. */ items: readonly LibraryItemValue[]; /** The Library, drawn on a wider frame and for an empty tab. */ children: ReactNode; } /** An author's tab's or the templates' cards in a phone's view — see the module docs. */ export declare function PhoneCards({ library, verb, items, children }: PhoneCardsProps): import("react/jsx-runtime").JSX.Element; /** A column of the phone's Columns tab. */ export interface PhoneColumn { key: string; header: string; /** Its kind, in words. */ kind: string; /** The viewer hides it. */ hidden: boolean; /** What its eye says. */ eye: string; /** The last column shown, whose eye stays. */ last: boolean; } /** Props of {@link PhoneColumns}. */ export interface PhoneColumnsProps { /** The declared columns, in their order. */ columns: readonly PhoneColumn[]; /** The column the sheet pins on a phone, by its key. */ pin: string | undefined; /** Hides a column, or shows it again. */ onToggle: (key: string) => void; /** The Library, drawn on a wider frame. */ children: ReactNode; } /** The Columns tab in a phone's view — see the module docs. */ export declare function PhoneColumns({ columns, pin, onToggle, children }: PhoneColumnsProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=phone-library.d.ts.map