react-accessible-tree
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -5,40 +5,35 @@ // Generated by dts-bundle v0.7.3 | ||
declare module 'index' { | ||
export * from "index/ReactAccessibleTree"; | ||
} | ||
import * as React from "react"; | ||
declare module 'index/ReactAccessibleTree' { | ||
import * as React from "react"; | ||
export interface ISearchMethodParams { | ||
node: any; | ||
path: number[] | string[]; | ||
treeIndex: number; | ||
searchQuery: any; | ||
} | ||
export interface ITreeNode<T = {}> { | ||
title: string | React.ReactNode; | ||
children: ITreeNode[]; | ||
searchKeys: string[]; | ||
id: string; | ||
extra?: T; | ||
expanded?: boolean; | ||
selected?: boolean; | ||
isTag?: boolean; | ||
ariaLabel?: string; | ||
} | ||
export interface IAccessibleTreeStyles { | ||
root?: Partial<React.CSSProperties>; | ||
group?: Partial<React.CSSProperties>; | ||
item?: Partial<React.CSSProperties>; | ||
} | ||
interface IProps { | ||
treeData: ITreeNode[]; | ||
styles?: IAccessibleTreeStyles; | ||
onChange(data: ITreeNode[]): void; | ||
onRenderItem?(item: ITreeNode): React.ReactNode; | ||
onItemKeyDown?(evt: React.KeyboardEvent, item: ITreeNode): void; | ||
} | ||
export const ReactAccessibleTree: React.FunctionComponent<IProps>; | ||
export {}; | ||
export interface ISearchMethodParams { | ||
node: any; | ||
path: number[] | string[]; | ||
treeIndex: number; | ||
searchQuery: any; | ||
} | ||
export interface ITreeNode<T = {}> { | ||
title: string | React.ReactNode; | ||
children: ITreeNode[]; | ||
searchKeys: string[]; | ||
id: string; | ||
extra?: T; | ||
expanded?: boolean; | ||
selected?: boolean; | ||
isTag?: boolean; | ||
ariaLabel?: string; | ||
} | ||
export interface IAccessibleTreeStyles { | ||
root?: Partial<React.CSSProperties>; | ||
group?: Partial<React.CSSProperties>; | ||
item?: Partial<React.CSSProperties>; | ||
} | ||
interface IProps { | ||
treeData: ITreeNode[]; | ||
styles?: IAccessibleTreeStyles; | ||
onChange(data: ITreeNode[]): void; | ||
onRenderItem?(item: ITreeNode): React.ReactNode; | ||
onItemKeyDown?(evt: React.KeyboardEvent, item: ITreeNode): void; | ||
} | ||
export const ReactAccessibleTree: React.FunctionComponent<IProps>; | ||
export {}; | ||
{ | ||
"name": "react-accessible-tree", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "dist/index", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -10,5 +10,6 @@ const { exec } = require("child_process"); | ||
name: "index", | ||
main: "dist/index.d.ts" | ||
main: "dist/index.d.ts", | ||
outputAsModuleFolder: true | ||
}); | ||
} | ||
}); |
Sorry, the diff of this file is not supported yet
741450
1883