@ebay/ebayui-core
Version:
Collection of core eBay components; considered to be the building blocks for all composite structures, pages & apps.
22 lines (21 loc) • 966 B
TypeScript
import { WithNormalizedProps } from "../../global";
import type { FilePreviewCardEvent, Input as FilePreviewCardInput } from "../ebay-file-preview-card/component";
interface FilePreviewCardGroupInput {
card?: Marko.RepeatableAttrTag<FilePreviewCardInput>;
"a11y-cancel-upload-text"?: FilePreviewCardInput["a11y-cancel-upload-text"];
"delete-text"?: FilePreviewCardInput["delete-text"];
"menu-actions"?: FilePreviewCardInput["menu-actions"];
"a11y-see-more-text"?: FilePreviewCardInput["a11y-see-more-text"];
"on-menu-action"?: (index: number, event: FilePreviewCardEvent) => void;
"on-delete"?: (index: number) => void;
"on-cancel"?: (index: number) => void;
}
export type Input = WithNormalizedProps<FilePreviewCardGroupInput>;
export interface State {
showing: number;
}
declare class FilePreviewCardGroup extends Marko.Component<Input, State> {
onCreate(): void;
seeMore(): void;
}
export default FilePreviewCardGroup;