This commit is contained in:
2024-03-22 03:47:51 +05:30
parent 8bcf3d211e
commit 89819f6fe2
28440 changed files with 3211033 additions and 2 deletions

View File

@@ -0,0 +1,37 @@
import * as React from 'react';
export interface StyleProps {
container: string;
basicChildStyle: string;
label: string;
nullValue: string;
undefinedValue: string;
numberValue: string;
stringValue: string;
booleanValue: string;
otherValue: string;
punctuation: string;
expandIcon: string;
collapseIcon: string;
collapsedContent: string;
noQuotesForStringValues: boolean;
}
export interface JsonRenderProps<T> {
field?: string;
value: T;
lastElement: boolean;
level: number;
style: StyleProps;
shouldExpandNode: (level: number, value: any, field?: string) => boolean;
}
export interface ExpandableRenderProps {
field?: string;
value: Array<any> | object;
data: Array<[string | undefined, any]>;
openBracket: string;
closeBracket: string;
lastElement: boolean;
level: number;
style: StyleProps;
shouldExpandNode: (level: number, value: any, field?: string) => boolean;
}
export default function DataRender(props: JsonRenderProps<any>): React.JSX.Element;