@almadar/ui 2.56.0 → 2.58.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/avl/index.cjs +1245 -1239
- package/dist/avl/index.js +174 -168
- package/dist/components/index.cjs +1180 -1056
- package/dist/components/index.js +277 -154
- package/dist/components/molecules/FileTree.d.ts +37 -0
- package/dist/components/molecules/index.d.ts +1 -0
- package/dist/providers/index.cjs +185 -182
- package/dist/providers/index.js +48 -45
- package/dist/runtime/index.cjs +916 -913
- package/dist/runtime/index.js +152 -149
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileTree Molecule
|
|
3
|
+
*
|
|
4
|
+
* A filesystem tree navigator with folder expand/collapse, file-type icons,
|
|
5
|
+
* and click-to-select. Used by the Workspace tab to browse the agent's
|
|
6
|
+
* workspace directory.
|
|
7
|
+
*
|
|
8
|
+
* Follows atomic design: composes Box, Icon, Typography atoms.
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
export interface FileTreeNode {
|
|
12
|
+
/** File or directory name */
|
|
13
|
+
name: string;
|
|
14
|
+
/** Relative path from workspace root */
|
|
15
|
+
path: string;
|
|
16
|
+
/** 'file' or 'dir' */
|
|
17
|
+
type: 'file' | 'dir';
|
|
18
|
+
/** Children (only for directories) */
|
|
19
|
+
children?: FileTreeNode[];
|
|
20
|
+
/** File size in bytes (optional, for display) */
|
|
21
|
+
size?: number;
|
|
22
|
+
/** Detected language for syntax highlighting */
|
|
23
|
+
language?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface FileTreeProps {
|
|
26
|
+
/** The tree data */
|
|
27
|
+
tree: FileTreeNode[];
|
|
28
|
+
/** Currently selected file path */
|
|
29
|
+
selectedPath?: string;
|
|
30
|
+
/** Called when a file is clicked */
|
|
31
|
+
onFileSelect?: (path: string) => void;
|
|
32
|
+
/** CSS class */
|
|
33
|
+
className?: string;
|
|
34
|
+
/** Indent size per level in px (default: 16) */
|
|
35
|
+
indent?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare const FileTree: React.FC<FileTreeProps>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { ErrorBoundary, type ErrorBoundaryProps } from './ErrorBoundary';
|
|
2
|
+
export { FileTree, type FileTreeProps, type FileTreeNode } from './FileTree';
|
|
2
3
|
export { FormField, type FormFieldProps } from './FormField';
|
|
3
4
|
export { EmptyState, type EmptyStateProps } from './EmptyState';
|
|
4
5
|
export { LoadingState, type LoadingStateProps } from './LoadingState';
|