freemium-ui 1.0.272 → 1.0.273
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import FreemiumUIThemes from '../../theme';
|
|
3
3
|
export interface TabsItemProps {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
hide?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
4
8
|
[key: string]: any;
|
|
5
9
|
}
|
|
6
|
-
declare type TabsProps = {
|
|
7
|
-
onChange?: (event: React.MouseEvent<HTMLDivElement>, menuItem:
|
|
8
|
-
options?: Array<
|
|
10
|
+
declare type TabsProps<T extends TabsItemProps = any> = {
|
|
11
|
+
onChange?: (event: React.MouseEvent<HTMLDivElement>, menuItem: T) => void;
|
|
12
|
+
options?: Array<T>;
|
|
9
13
|
idAccessor?: string;
|
|
10
14
|
nameAccessor?: string;
|
|
11
15
|
ref?: React.RefObject<HTMLDivElement>;
|
|
12
16
|
value?: string;
|
|
13
17
|
theme?: FreemiumUIThemes;
|
|
14
18
|
};
|
|
15
|
-
export declare const Tabs: (props: TabsProps) => JSX.Element;
|
|
19
|
+
export declare const Tabs: <T extends TabsItemProps = any>(props: TabsProps<T>) => JSX.Element;
|
|
16
20
|
export {};
|