UNPKG

@spaced-out/ui-design-system

Version:
40 lines 1.52 kB
import * as React from 'react'; import type { Flow } from 'flow-to-typescript-codemod'; import type { IconType } from '../Icon'; export declare const COLLAPSIBLE_CARD_SEMANTIC: Readonly<{ neutral: "neutral"; success: "success"; information: "information"; warning: "warning"; danger: "danger"; }>; type ClassNames = Readonly<{ wrapper?: string; title?: string; content?: string; }>; export type CollapsibleCardSemanticType = (typeof COLLAPSIBLE_CARD_SEMANTIC)[keyof typeof COLLAPSIBLE_CARD_SEMANTIC]; export type CollapsibleCardProps = { id?: string; title: React.ReactNode; children: React.ReactNode; classNames?: ClassNames; isOpen?: boolean; headerIconName?: string; headerIconType?: IconType; semantic?: CollapsibleCardSemanticType; onChange?: ((e: React.SyntheticEvent<HTMLElement>, isOpen: boolean, id?: string) => unknown) | null | undefined; }; export type CollapsibleCardActionProps = { children: React.ReactNode; className?: string; }; export declare const CollapsibleCardAction: ({ children, className, }: CollapsibleCardActionProps) => React.JSX.Element; export type CollapsibleCardContentProps = { children: React.ReactNode; className?: string; }; export declare const CollapsibleCardContent: ({ children, className, }: CollapsibleCardActionProps) => React.JSX.Element; export declare const CollapsibleCard: Flow.AbstractComponent<CollapsibleCardProps, HTMLDivElement>; export {}; //# sourceMappingURL=CollapsibleCard.d.ts.map