1 | import { JSXElementConstructor, Key, ReactElement, ReactNode } from 'react';
|
2 | import { TabsPosition } from './enum';
|
3 | import { TabGroupProps } from './TabGroup';
|
4 | import { TabPaneProps } from './TabPane';
|
5 | import { GroupPanelMap, TabsCustomized } from './Tabs';
|
6 | export declare function toGroups(children: ReactNode): ReactElement<TabGroupProps>[];
|
7 | export declare function toArray(children: ReactNode): ReactElement<TabPaneProps>[];
|
8 | export declare function getDefaultActiveKeyInGroup(panelMap: Map<string, TabPaneProps>): string | undefined;
|
9 | export declare function getDefaultActiveKey(totalPanelsMap: Map<string, TabPaneProps>, groupedPanelsMap: Map<string, GroupPanelMap>, option: {
|
10 | activeKey?: string | undefined;
|
11 | defaultActiveKey?: string | undefined;
|
12 | }): string | undefined;
|
13 | export declare function getDefaultGroupKey(groupedPanelsMap: Map<string, GroupPanelMap>): string | undefined;
|
14 | export declare function getActiveKeyByGroupKey(groupedPanelsMap: Map<string, GroupPanelMap>, key: string): string | undefined;
|
15 | export declare function generateKey(key: Key | undefined | null, index: number): string;
|
16 | export declare function getActiveIndex(map: Map<string, TabPaneProps>, activeKey: string | undefined): number;
|
17 | export declare function setTransform(style: CSSStyleDeclaration, v?: string): void;
|
18 | export declare function isTransformSupported(style: CSSStyleDeclaration): boolean;
|
19 | export declare function setTransition(style: CSSStyleDeclaration, v?: string): void;
|
20 | export declare function getTransformPropValue(v: string): {
|
21 | transform: string;
|
22 | WebkitTransform: string;
|
23 | };
|
24 | export declare function isVertical(tabBarPosition: TabsPosition | undefined): boolean;
|
25 | export declare function getTransformByIndex(index: number, tabBarPosition: TabsPosition | undefined): string;
|
26 | export declare function getMarginStyle(index: number, tabBarPosition: TabsPosition | undefined): {
|
27 | [x: string]: string;
|
28 | };
|
29 | export declare function getStyle(el: HTMLElement, property: string): number;
|
30 | export declare function setPxStyle(el: HTMLElement, value: string | number, vertical: boolean): void;
|
31 | export declare function getDataAttr(props: object): object;
|
32 | export declare function getLeft(tabNode: HTMLElement, wrapperNode: HTMLElement): number;
|
33 | export declare function getTop(tabNode: HTMLElement, wrapperNode: HTMLElement): number;
|
34 | export declare function getHeader(props: TabPaneProps): ReactNode;
|
35 | export declare function normalizePanes(children: ReactNode, customized?: TabsCustomized | undefined | null): [Map<string, TabPaneProps & {
|
36 | type: string | JSXElementConstructor<any>;
|
37 | }>, Map<string, GroupPanelMap>];
|