@exegia/corpora-ui 0.26.0 → 0.28.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-lib/components/composed/tree/constants.d.ts +0 -4
- package/dist-lib/components/icons/__tests__/icons.test.d.ts +1 -0
- package/dist-lib/components/icons/file-badge-cfm.d.ts +7 -0
- package/dist-lib/components/icons/file-badge-corpus.d.ts +7 -0
- package/dist-lib/components/icons/file-badge-pdf.d.ts +7 -0
- package/dist-lib/components/icons/file-badge-tei.d.ts +7 -0
- package/dist-lib/components/icons/file-badge-tf.d.ts +7 -0
- package/dist-lib/components/icons/file-badge-txt.d.ts +7 -0
- package/dist-lib/components/icons/file-badge-xml.d.ts +7 -0
- package/dist-lib/components/icons/file-wordmark-cfm.d.ts +7 -0
- package/dist-lib/components/icons/file-wordmark-corpus.d.ts +7 -0
- package/dist-lib/components/icons/file-wordmark-pdf.d.ts +7 -0
- package/dist-lib/components/icons/file-wordmark-tei.d.ts +7 -0
- package/dist-lib/components/icons/file-wordmark-tf.d.ts +7 -0
- package/dist-lib/components/icons/file-wordmark-txt.d.ts +7 -0
- package/dist-lib/components/icons/file-wordmark-xml.d.ts +7 -0
- package/dist-lib/components/icons/index.d.ts +15 -0
- package/dist-lib/components/icons/types.d.ts +7 -0
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.js +8214 -1028
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/blocks/profile/__tests__/profile-card-block.test.tsx +4 -2
- package/src/components/blocks/profile/profile-card-block.tsx +11 -11
- package/src/components/composed/tree/CLAUDE.md +23 -10
- package/src/components/composed/tree/__tests__/tree.test.tsx +18 -21
- package/src/components/composed/tree/constants.ts +0 -5
- package/src/components/composed/tree/tree-node.tsx +7 -1
- package/src/components/composed/tree/tree.tsx +9 -62
- package/src/components/icons/README.md +91 -0
- package/src/components/icons/__tests__/icons.test.tsx +58 -0
- package/src/components/icons/file-badge-cfm.tsx +615 -0
- package/src/components/icons/file-badge-corpus.tsx +604 -0
- package/src/components/icons/file-badge-pdf.tsx +570 -0
- package/src/components/icons/file-badge-tei.tsx +524 -0
- package/src/components/icons/file-badge-tf.tsx +620 -0
- package/src/components/icons/file-badge-txt.tsx +607 -0
- package/src/components/icons/file-badge-xml.tsx +576 -0
- package/src/components/icons/file-wordmark-cfm.tsx +424 -0
- package/src/components/icons/file-wordmark-corpus.tsx +454 -0
- package/src/components/icons/file-wordmark-pdf.tsx +470 -0
- package/src/components/icons/file-wordmark-tei.tsx +424 -0
- package/src/components/icons/file-wordmark-tf.tsx +406 -0
- package/src/components/icons/file-wordmark-txt.tsx +421 -0
- package/src/components/icons/file-wordmark-xml.tsx +424 -0
- package/src/components/icons/index.ts +16 -0
- package/src/components/icons/types.ts +8 -0
- package/src/index.ts +3 -0
|
@@ -9,10 +9,6 @@ export declare const TREE_CLOSE_DURATION = 0.15;
|
|
|
9
9
|
export declare const TREE_MICRO_DURATION = 0.15;
|
|
10
10
|
/** Sidebar rail label reveal/hide when `collapsed` flips. */
|
|
11
11
|
export declare const TREE_COLLAPSE_DURATION = 0.2;
|
|
12
|
-
/** The collapsed rail's width in px — one `h-10 rounded-xl` icon row, edge
|
|
13
|
-
* to edge. Kept in sync with the `w-10` resting class the rail falls back to
|
|
14
|
-
* before its expanded width has been measured. */
|
|
15
|
-
export declare const RAIL_COLLAPSED_WIDTH = 40;
|
|
16
12
|
/** Rail label text fade — starts as the width growth is finishing, so the
|
|
17
13
|
* label never reads as clipped mid-grow. */
|
|
18
14
|
export declare const TREE_LABEL_REVEAL_DELAY = 0.01;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* CFM file icon — badge variant.
|
|
4
|
+
* Light/dark artwork layers switch on Tailwind's `dark` variant.
|
|
5
|
+
*/
|
|
6
|
+
export declare function FileBadgeCfm({ size, title, className, ...props }: FileIconProps): import("react").JSX.Element;
|
|
7
|
+
export default FileBadgeCfm;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Corpus file icon — badge variant.
|
|
4
|
+
* Light/dark artwork layers switch on Tailwind's `dark` variant.
|
|
5
|
+
*/
|
|
6
|
+
export declare function FileBadgeCorpus({ size, title, className, ...props }: FileIconProps): import("react").JSX.Element;
|
|
7
|
+
export default FileBadgeCorpus;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* PDF file icon — badge variant.
|
|
4
|
+
* Light/dark artwork layers switch on Tailwind's `dark` variant.
|
|
5
|
+
*/
|
|
6
|
+
export declare function FileBadgePdf({ size, title, className, ...props }: FileIconProps): import("react").JSX.Element;
|
|
7
|
+
export default FileBadgePdf;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* TEI file icon — badge variant.
|
|
4
|
+
* Light/dark artwork layers switch on Tailwind's `dark` variant.
|
|
5
|
+
*/
|
|
6
|
+
export declare function FileBadgeTei({ size, title, className, ...props }: FileIconProps): import("react").JSX.Element;
|
|
7
|
+
export default FileBadgeTei;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* TF file icon — badge variant.
|
|
4
|
+
* Light/dark artwork layers switch on Tailwind's `dark` variant.
|
|
5
|
+
*/
|
|
6
|
+
export declare function FileBadgeTf({ size, title, className, ...props }: FileIconProps): import("react").JSX.Element;
|
|
7
|
+
export default FileBadgeTf;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* TXT file icon — badge variant.
|
|
4
|
+
* Light/dark artwork layers switch on Tailwind's `dark` variant.
|
|
5
|
+
*/
|
|
6
|
+
export declare function FileBadgeTxt({ size, title, className, ...props }: FileIconProps): import("react").JSX.Element;
|
|
7
|
+
export default FileBadgeTxt;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* XML file icon — badge variant.
|
|
4
|
+
* Light/dark artwork layers switch on Tailwind's `dark` variant.
|
|
5
|
+
*/
|
|
6
|
+
export declare function FileBadgeXml({ size, title, className, ...props }: FileIconProps): import("react").JSX.Element;
|
|
7
|
+
export default FileBadgeXml;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* CFM file icon — wordmark variant.
|
|
4
|
+
* Light/dark artwork layers switch on Tailwind's `dark` variant.
|
|
5
|
+
*/
|
|
6
|
+
export declare function FileWordmarkCfm({ size, title, className, ...props }: FileIconProps): import("react").JSX.Element;
|
|
7
|
+
export default FileWordmarkCfm;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Corpus file icon — wordmark variant.
|
|
4
|
+
* Light/dark artwork layers switch on Tailwind's `dark` variant.
|
|
5
|
+
*/
|
|
6
|
+
export declare function FileWordmarkCorpus({ size, title, className, ...props }: FileIconProps): import("react").JSX.Element;
|
|
7
|
+
export default FileWordmarkCorpus;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* PDF file icon — wordmark variant.
|
|
4
|
+
* Light/dark artwork layers switch on Tailwind's `dark` variant.
|
|
5
|
+
*/
|
|
6
|
+
export declare function FileWordmarkPdf({ size, title, className, ...props }: FileIconProps): import("react").JSX.Element;
|
|
7
|
+
export default FileWordmarkPdf;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* TEI file icon — wordmark variant.
|
|
4
|
+
* Light/dark artwork layers switch on Tailwind's `dark` variant.
|
|
5
|
+
*/
|
|
6
|
+
export declare function FileWordmarkTei({ size, title, className, ...props }: FileIconProps): import("react").JSX.Element;
|
|
7
|
+
export default FileWordmarkTei;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* TF file icon — wordmark variant.
|
|
4
|
+
* Light/dark artwork layers switch on Tailwind's `dark` variant.
|
|
5
|
+
*/
|
|
6
|
+
export declare function FileWordmarkTf({ size, title, className, ...props }: FileIconProps): import("react").JSX.Element;
|
|
7
|
+
export default FileWordmarkTf;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* TXT file icon — wordmark variant.
|
|
4
|
+
* Light/dark artwork layers switch on Tailwind's `dark` variant.
|
|
5
|
+
*/
|
|
6
|
+
export declare function FileWordmarkTxt({ size, title, className, ...props }: FileIconProps): import("react").JSX.Element;
|
|
7
|
+
export default FileWordmarkTxt;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileIconProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* XML file icon — wordmark variant.
|
|
4
|
+
* Light/dark artwork layers switch on Tailwind's `dark` variant.
|
|
5
|
+
*/
|
|
6
|
+
export declare function FileWordmarkXml({ size, title, className, ...props }: FileIconProps): import("react").JSX.Element;
|
|
7
|
+
export default FileWordmarkXml;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type { FileIconProps } from './types';
|
|
2
|
+
export { FileBadgeCfm } from './file-badge-cfm';
|
|
3
|
+
export { FileBadgeCorpus } from './file-badge-corpus';
|
|
4
|
+
export { FileBadgePdf } from './file-badge-pdf';
|
|
5
|
+
export { FileBadgeTei } from './file-badge-tei';
|
|
6
|
+
export { FileBadgeTf } from './file-badge-tf';
|
|
7
|
+
export { FileBadgeTxt } from './file-badge-txt';
|
|
8
|
+
export { FileBadgeXml } from './file-badge-xml';
|
|
9
|
+
export { FileWordmarkCfm } from './file-wordmark-cfm';
|
|
10
|
+
export { FileWordmarkCorpus } from './file-wordmark-corpus';
|
|
11
|
+
export { FileWordmarkPdf } from './file-wordmark-pdf';
|
|
12
|
+
export { FileWordmarkTei } from './file-wordmark-tei';
|
|
13
|
+
export { FileWordmarkTf } from './file-wordmark-tf';
|
|
14
|
+
export { FileWordmarkTxt } from './file-wordmark-txt';
|
|
15
|
+
export { FileWordmarkXml } from './file-wordmark-xml';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
export interface FileIconProps extends Omit<SVGProps<SVGSVGElement>, 'width' | 'height'> {
|
|
3
|
+
/** Rendered width and height. Defaults to 64. */
|
|
4
|
+
size?: number | string;
|
|
5
|
+
/** Accessible name. Pass `null` to mark the icon decorative. */
|
|
6
|
+
title?: string | null;
|
|
7
|
+
}
|
package/dist-lib/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from './components/ui/separator';
|
|
|
20
20
|
export * from './components/ui/skeleton';
|
|
21
21
|
export * from './components/ui/spinner';
|
|
22
22
|
export * from './components/ui/textarea';
|
|
23
|
+
export * from './components/icons';
|
|
23
24
|
export * from './components/composed/logo';
|
|
24
25
|
export * from './components/composed/password-input';
|
|
25
26
|
export * from './components/composed/social-providers';
|