@clevertask/react-sortable-tree 0.0.1 → 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/README.md +42 -31
- package/dist/SortableTree/SortableTree.d.ts +1 -1
- package/dist/SortableTree/components/TreeItem/TreeItem.d.ts +1 -1
- package/dist/SortableTree/types.d.ts +3 -3
- package/dist/SortableTree/utilities.d.ts +15 -2
- package/dist/react-sortable-tree.js +700 -698
- package/dist/react-sortable-tree.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +14 -12
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._Wrapper_wguit_1{list-style:none;box-sizing:border-box;padding-left:var(--spacing);margin-bottom:-1px}._Wrapper_wguit_1._clone_wguit_8{display:inline-block;pointer-events:none;padding:5px 0 0 10px}._Wrapper_wguit_1._clone_wguit_8 ._TreeItem_wguit_16{--vertical-padding: 5px;padding-right:24px;border-radius:4px;box-shadow:0 15px 15px #2221511a}._Wrapper_wguit_1._ghost_wguit_23._indicator_wguit_23{opacity:1;position:relative;z-index:1;margin-bottom:-1px}._Wrapper_wguit_1._ghost_wguit_23._indicator_wguit_23 ._TreeItem_wguit_16{position:relative;padding:0;height:8px;border-color:#2389ff;background-color:#56a1f8}._Wrapper_wguit_1._ghost_wguit_23._indicator_wguit_23 ._TreeItem_wguit_16:before{position:absolute;left:-8px;top:-4px;display:block;content:"";width:12px;height:12px;border-radius:50%;border:1px solid #2389ff;background-color:#fff}._Wrapper_wguit_1._ghost_wguit_23._indicator_wguit_23 ._TreeItem_wguit_16>*{opacity:0;height:0}._Wrapper_wguit_1._ghost_wguit_23:not(._indicator_wguit_23){opacity:.5}._Wrapper_wguit_1._ghost_wguit_23 ._TreeItem_wguit_16>*{box-shadow:none;background-color:transparent}._TreeItem_wguit_16{--vertical-padding: 10px;position:relative;display:flex;align-items:center;padding:var(--vertical-padding) 10px;background-color:#fff;border:1px solid #dedede;color:#222;box-sizing:border-box}._Text_wguit_78{flex-grow:1;padding-left:.5rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;align-self:stretch;display:flex;align-items:center;cursor:pointer}._Count_wguit_90{position:absolute;top:-10px;right:-10px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background-color:#2389ff;font-size:.8rem;font-weight:600;color:#fff}._disableInteraction_wguit_106{pointer-events:none}._disableSelection_wguit_110 ._Text_wguit_78,._disableSelection_wguit_110 ._Count_wguit_90,._clone_wguit_8 ._Text_wguit_78,._clone_wguit_8 ._Count_wguit_90{user-select:none;-webkit-user-select:none}._Collapse_wguit_118 svg{transition:transform .25s ease}._Collapse_wguit_118._collapsed_wguit_122 svg{transform:rotate(-90deg)}._Action_7i4a4_1{display:flex;width:12px;padding:15px;align-items:center;justify-content:center;flex:0 0 auto;touch-action:none;cursor:var(--cursor, pointer);border-radius:5px;border:none;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;-webkit-tap-highlight-color:transparent}@media (hover: hover){._Action_7i4a4_1:hover{background-color:var(--action-background, rgba(0, 0, 0, .05))}._Action_7i4a4_1:hover svg{fill:#6f7b88}}._Action_7i4a4_1 svg{flex:0 0 auto;margin:auto;height:100%;overflow:visible;fill:#919eab}._Action_7i4a4_1:active{background-color:var(--background, rgba(0, 0, 0, .05))}._Action_7i4a4_1:active svg{fill:var(--fill, #788491)}._Action_7i4a4_1:focus-visible{outline:none;box-shadow:0 0 0 2px #fff0,0 0 0 2px #4c9ffe}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clevertask/react-sortable-tree",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "CleverTask",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"dev": "vite",
|
|
14
14
|
"build": "rm -rf dist && tsc -b && vite build",
|
|
15
15
|
"lint": "eslint .",
|
|
16
|
+
"format": "prettier . --write",
|
|
16
17
|
"preview": "vite preview",
|
|
17
18
|
"prepublishOnly": "npm run build"
|
|
18
19
|
},
|
|
@@ -24,18 +25,19 @@
|
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"@eslint/js": "^9.9.0",
|
|
27
|
-
"@types/node": "^22.
|
|
28
|
-
"@types/react": "^18.3.
|
|
29
|
-
"@types/react-dom": "^18.3.
|
|
30
|
-
"@vitejs/plugin-react-swc": "^3.
|
|
31
|
-
"eslint": "^9.
|
|
28
|
+
"@types/node": "^22.7.6",
|
|
29
|
+
"@types/react": "^18.3.11",
|
|
30
|
+
"@types/react-dom": "^18.3.1",
|
|
31
|
+
"@vitejs/plugin-react-swc": "^3.7.1",
|
|
32
|
+
"eslint": "^9.12.0",
|
|
32
33
|
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
|
33
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
34
|
-
"globals": "^15.
|
|
35
|
-
"
|
|
36
|
-
"typescript
|
|
37
|
-
"
|
|
38
|
-
"vite
|
|
34
|
+
"eslint-plugin-react-refresh": "^0.4.12",
|
|
35
|
+
"globals": "^15.11.0",
|
|
36
|
+
"prettier": "^3.3.3",
|
|
37
|
+
"typescript": "^5.6.3",
|
|
38
|
+
"typescript-eslint": "^8.10.0",
|
|
39
|
+
"vite": "^5.4.9",
|
|
40
|
+
"vite-plugin-dts": "^4.2.4"
|
|
39
41
|
},
|
|
40
42
|
"peerDependencies": {
|
|
41
43
|
"react": "^18.3.1",
|