sticky-file-tree 0.0.2 → 0.0.3
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/LICENSE +9 -0
- package/README.md +0 -7
- package/package.json +9 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bhuvan Dahal
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -15,7 +15,6 @@ A customizable File Tree component built specifically for the React 19 ecosystem
|
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
npm install sticky-file-tree
|
|
18
|
-
|
|
19
18
|
```
|
|
20
19
|
|
|
21
20
|
## Quick Start
|
|
@@ -143,8 +142,6 @@ These are the primary props passed to the `<FileTree />` component.
|
|
|
143
142
|
| `fileOptions` | `TreeFileNodeOptions` | See below | Specific overrides for file (leaf) nodes. |
|
|
144
143
|
| `folderOptions` | `TreeFolderNodeOptions` | See below | Specific overrides for folder (branch) nodes. |
|
|
145
144
|
|
|
146
|
-
---
|
|
147
|
-
|
|
148
145
|
### 2. `nodeOptions`
|
|
149
146
|
|
|
150
147
|
Global settings applied to every node in the tree.
|
|
@@ -157,8 +154,6 @@ Global settings applied to every node in the tree.
|
|
|
157
154
|
| `depthOffset` | `(props) => number` | `({ depth, depthDistance }) => depthDistance * (depth - 1)` | Custom function to calculate indentation per level. |
|
|
158
155
|
| `colors` | `BaseColorsProps` | `Theme defaults` | Global color states (Default, Hover, Focus, Selected). |
|
|
159
156
|
|
|
160
|
-
---
|
|
161
|
-
|
|
162
157
|
### 3. `fileOptions`
|
|
163
158
|
|
|
164
159
|
Specific to files. Inherits options from `nodeOptions`.
|
|
@@ -168,8 +163,6 @@ Specific to files. Inherits options from `nodeOptions`.
|
|
|
168
163
|
| `icon` | `Component \| IconProps` | Custom file icon or props for the default icon. |
|
|
169
164
|
| `text` | `Component \| HTMLAttributes` | Custom label renderer or standard span attributes. |
|
|
170
165
|
|
|
171
|
-
---
|
|
172
|
-
|
|
173
166
|
### 4. `folderOptions`
|
|
174
167
|
|
|
175
168
|
Specific to folders. Inherits from `nodeOptions` (except `colors` which adds the `stuck` state).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sticky-file-tree",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "A customizable file tree component for React apps.",
|
|
5
5
|
"homepage": "https://github.com/bhuvanpddahal/sticky-file-tree#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -10,7 +10,14 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/bhuvanpddahal/sticky-file-tree.git"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
13
|
+
"keywords": [
|
|
14
|
+
"file-tree",
|
|
15
|
+
"folder-tree",
|
|
16
|
+
"tree-view",
|
|
17
|
+
"file-explorer",
|
|
18
|
+
"sticky-folder"
|
|
19
|
+
],
|
|
20
|
+
"license": "MIT",
|
|
14
21
|
"author": "Bhuvan Dahal",
|
|
15
22
|
"type": "module",
|
|
16
23
|
"main": "dist/index.js",
|