1 | import * as React from 'react';
|
2 | import type { CollapseProps as RcCollapseProps } from 'rc-collapse';
|
3 | import type { SizeType } from '../config-provider/SizeContext';
|
4 | import type { CollapsibleType } from './CollapsePanel';
|
5 |
|
6 | type ExpandIconPositionLegacy = 'left' | 'right';
|
7 | export type ExpandIconPosition = 'start' | 'end' | ExpandIconPositionLegacy | undefined;
|
8 | export interface CollapseProps extends Pick<RcCollapseProps, 'items'> {
|
9 | activeKey?: Array<string | number> | string | number;
|
10 | defaultActiveKey?: Array<string | number> | string | number;
|
11 |
|
12 | accordion?: boolean;
|
13 | destroyInactivePanel?: boolean;
|
14 | onChange?: (key: string[]) => void;
|
15 | style?: React.CSSProperties;
|
16 | className?: string;
|
17 | rootClassName?: string;
|
18 | bordered?: boolean;
|
19 | prefixCls?: string;
|
20 | expandIcon?: (panelProps: PanelProps) => React.ReactNode;
|
21 | expandIconPosition?: ExpandIconPosition;
|
22 | ghost?: boolean;
|
23 | size?: SizeType;
|
24 | collapsible?: CollapsibleType;
|
25 | |
26 |
|
27 |
|
28 | children?: React.ReactNode;
|
29 | }
|
30 | interface PanelProps {
|
31 | isActive?: boolean;
|
32 | header?: React.ReactNode;
|
33 | className?: string;
|
34 | style?: React.CSSProperties;
|
35 | showArrow?: boolean;
|
36 | forceRender?: boolean;
|
37 |
|
38 | disabled?: boolean;
|
39 | extra?: React.ReactNode;
|
40 | collapsible?: CollapsibleType;
|
41 | }
|
42 | declare const _default: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLDivElement>> & {
|
43 | Panel: React.ForwardRefExoticComponent<import("./CollapsePanel").CollapsePanelProps & React.RefAttributes<HTMLDivElement>>;
|
44 | };
|
45 | export default _default;
|