@aiquants/directory-tree 3.8.0 → 3.8.2
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/entryRendering.d.ts +2 -2
- package/dist/entryRendering.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +665 -602
- package/package.json +2 -2
- package/src/entryRendering.tsx +5 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiquants/directory-tree",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.2",
|
|
4
4
|
"description": "High-performance directory tree component for React with virtual scrolling and file selection",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
|
-
"build": "vite build && vite build --config vite.config.cli.ts && pnpm build:css",
|
|
78
|
+
"build": "rimraf dist && vite build && vite build --config vite.config.cli.ts && pnpm build:css",
|
|
79
79
|
"build:css": "tailwindcss -i src/styles/components.entry.css -o dist/styles/directory-tree.css --minify && tailwindcss -i src/styles/standalone.entry.css -o dist/styles/directory-tree.standalone.css --minify",
|
|
80
80
|
"dev": "vite build --watch",
|
|
81
81
|
"watch": "vite build --watch",
|
package/src/entryRendering.tsx
CHANGED
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
* circular import.
|
|
7
7
|
* 従来行と TreeGrid 行が共有する定数・クラス・アイコン解決ヘルパ。循環 import 回避のため分離。
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
9
|
+
import ChevronDownIcon from "@heroicons/react/24/solid/ChevronDownIcon.js"
|
|
10
|
+
import ChevronRightIcon from "@heroicons/react/24/solid/ChevronRightIcon.js"
|
|
11
|
+
import FolderIcon from "@heroicons/react/24/solid/FolderIcon.js"
|
|
10
12
|
import { FileAudio, FileCode, FileCsv, FileDoc, FileIcon, FileImage, FileMd, FilePdf, FilePpt, FileText, FileVideo, FileXls, FileZip } from "@phosphor-icons/react"
|
|
11
13
|
import type { ReactNode } from "react"
|
|
12
14
|
import { twMerge } from "tailwind-merge"
|
|
@@ -16,8 +18,8 @@ import type { DirectoryTreeIconOverrides, DirectoryTreeIconRenderContext, Direct
|
|
|
16
18
|
export const DEFAULT_ITEM_HEIGHT = 18
|
|
17
19
|
/** Indentation per depth level in px. / 1 階層あたりのインデント幅 (px)。 FHD環境に最適化されたコンパクト設計 (12px) */
|
|
18
20
|
export const INDENT_SIZE = 12
|
|
19
|
-
/** Standard expand glyph size. / 展開アイコンの標準サイズ (
|
|
20
|
-
export const EXPAND_GLYPH_SIZE =
|
|
21
|
+
/** Standard expand glyph size. / 展開アイコンの標準サイズ (8px)。 */
|
|
22
|
+
export const EXPAND_GLYPH_SIZE = 8
|
|
21
23
|
|
|
22
24
|
/**
|
|
23
25
|
* TailwindCSS v4 class names for DirectoryTree component.
|