@doccov/ui 0.2.2 → 0.3.0
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.
- package/dist/badge/index.d.ts +14 -0
- package/dist/badge/index.js +86 -0
- package/dist/breadcrumb/index.d.ts +24 -0
- package/dist/breadcrumb/index.js +77 -0
- package/dist/button/index.d.ts +18 -0
- package/dist/button/index.js +109 -0
- package/dist/coverage-trends/index.d.ts +46 -0
- package/dist/coverage-trends/index.js +182 -0
- package/dist/docskit/index.d.ts +172 -1
- package/dist/docskit/index.js +755 -1
- package/dist/file-change-row/index.d.ts +34 -0
- package/dist/file-change-row/index.js +4415 -0
- package/dist/file-chip/index.d.ts +7 -0
- package/dist/file-chip/index.js +30 -0
- package/dist/input/index.d.ts +23 -0
- package/dist/input/index.js +242 -0
- package/dist/tabs/index.d.ts +56 -0
- package/dist/tabs/index.js +224 -0
- package/package.json +33 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AnnotationHandler, RawCode } from "codehike/code";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function StackedChevrons({ isOpen, className }: {
|
|
4
|
+
isOpen?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
});
|
|
7
|
+
/** Get language from filename extension */
|
|
8
|
+
declare function getLangFromFilename(filename: string): string;
|
|
9
|
+
interface FileChangeRowProps {
|
|
10
|
+
path: string;
|
|
11
|
+
filename: string;
|
|
12
|
+
additions?: number;
|
|
13
|
+
deletions?: number;
|
|
14
|
+
/** Code block to highlight and render */
|
|
15
|
+
codeblock?: RawCode;
|
|
16
|
+
/** Extra annotation handlers for code */
|
|
17
|
+
handlers?: AnnotationHandler[];
|
|
18
|
+
/** Show copy button */
|
|
19
|
+
showCopy?: boolean;
|
|
20
|
+
/** Fallback children if no codeblock provided */
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
defaultOpen?: boolean;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
declare function FileChangeRow({ path, filename, additions, deletions, codeblock, handlers: extraHandlers, showCopy, children, defaultOpen, className }: FileChangeRowProps);
|
|
26
|
+
interface FileChangeListProps {
|
|
27
|
+
title?: string;
|
|
28
|
+
count?: number;
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
defaultOpen?: boolean;
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
declare function FileChangeList({ title, count, children, defaultOpen, className }: FileChangeListProps);
|
|
34
|
+
export { getLangFromFilename, StackedChevrons, FileChangeRowProps, FileChangeRow, FileChangeListProps, FileChangeList };
|