@unciatech/file-manager 0.0.9 → 0.0.13
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/cli.js +29 -14
- package/dist/cli.mjs +29 -14
- package/dist/index.js +31 -31
- package/dist/index.mjs +31 -31
- package/dist/styles.css +79 -0
- package/package.json +12 -10
- package/styles.css +79 -0
package/dist/styles.css
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* @unciatech/file-manager — base styles
|
|
2
|
+
* Single source of truth for CSS custom properties.
|
|
3
|
+
* - Imported by app/globals.css in the dev app
|
|
4
|
+
* - Copied to dist/styles.css for consumers to import
|
|
5
|
+
*
|
|
6
|
+
* Usage (consumer): import '@unciatech/file-manager/styles';
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/* ── Light mode ───────────────────────────────────────────────── */
|
|
10
|
+
:root {
|
|
11
|
+
--background: #ffffff;
|
|
12
|
+
--foreground: #09090b; /* zinc-950 */
|
|
13
|
+
--card: #ffffff;
|
|
14
|
+
--card-foreground: #09090b;
|
|
15
|
+
--popover: #ffffff;
|
|
16
|
+
--popover-foreground: #09090b;
|
|
17
|
+
--primary: #3b82f6; /* blue-500 */
|
|
18
|
+
--primary-foreground: #ffffff;
|
|
19
|
+
--secondary: #f4f4f5; /* zinc-100 */
|
|
20
|
+
--secondary-foreground: #18181b;
|
|
21
|
+
--muted: #f4f4f5;
|
|
22
|
+
--muted-foreground: #71717a; /* zinc-500 */
|
|
23
|
+
--accent: #f4f4f5;
|
|
24
|
+
--accent-foreground: #18181b;
|
|
25
|
+
--destructive: #dc2626; /* red-600 */
|
|
26
|
+
--destructive-foreground: #ffffff;
|
|
27
|
+
--border: oklch(94% 0.004 286.32);
|
|
28
|
+
--input: #e4e4e7; /* zinc-200 */
|
|
29
|
+
--ring: #a1a1aa; /* zinc-400 */
|
|
30
|
+
--radius: 0.5rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* ── Dark mode ────────────────────────────────────────────────── */
|
|
34
|
+
.dark {
|
|
35
|
+
--background: #09090b;
|
|
36
|
+
--foreground: #fafafa;
|
|
37
|
+
--card: #09090b;
|
|
38
|
+
--card-foreground: #fafafa;
|
|
39
|
+
--popover: #09090b;
|
|
40
|
+
--popover-foreground: #fafafa;
|
|
41
|
+
--primary: #2563eb; /* blue-600 */
|
|
42
|
+
--primary-foreground: #ffffff;
|
|
43
|
+
--secondary: #27272a; /* zinc-800 */
|
|
44
|
+
--secondary-foreground: #fafafa;
|
|
45
|
+
--muted: #18181b;
|
|
46
|
+
--muted-foreground: #71717a;
|
|
47
|
+
--accent: #18181b;
|
|
48
|
+
--accent-foreground: #fafafa;
|
|
49
|
+
--destructive: #dc2626;
|
|
50
|
+
--destructive-foreground: #ffffff;
|
|
51
|
+
--border: #27272a;
|
|
52
|
+
--input: #27272a;
|
|
53
|
+
--ring: #52525b; /* zinc-600 */
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ── Base resets ──────────────────────────────────────────────── */
|
|
57
|
+
*, *::before, *::after {
|
|
58
|
+
border-color: var(--border);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Suppress the thick native browser outline; use a subtle ring instead */
|
|
62
|
+
*:focus-visible {
|
|
63
|
+
outline: 2px solid var(--ring);
|
|
64
|
+
outline-offset: 2px;
|
|
65
|
+
border-radius: 2px;
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* ── Scrollbar ────────────────────────────────────────────────── */
|
|
70
|
+
::-webkit-scrollbar { width: 5px; }
|
|
71
|
+
::-webkit-scrollbar-track { background: transparent; }
|
|
72
|
+
::-webkit-scrollbar-thumb {
|
|
73
|
+
background: var(--input);
|
|
74
|
+
border-radius: 5px;
|
|
75
|
+
}
|
|
76
|
+
* {
|
|
77
|
+
scrollbar-width: thin;
|
|
78
|
+
scrollbar-color: var(--input) transparent;
|
|
79
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unciatech/file-manager",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -13,10 +13,12 @@
|
|
|
13
13
|
"import": "./dist/index.mjs",
|
|
14
14
|
"require": "./dist/index.js",
|
|
15
15
|
"default": "./dist/index.js"
|
|
16
|
-
}
|
|
16
|
+
},
|
|
17
|
+
"./styles": "./dist/styles.css"
|
|
17
18
|
},
|
|
18
19
|
"files": [
|
|
19
20
|
"dist",
|
|
21
|
+
"styles.css",
|
|
20
22
|
"README.md"
|
|
21
23
|
],
|
|
22
24
|
"author": "Avi",
|
|
@@ -25,6 +27,13 @@
|
|
|
25
27
|
"type": "git",
|
|
26
28
|
"url": "git+https://github.com/unciatech/file-manager.git"
|
|
27
29
|
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"dev": "next dev",
|
|
32
|
+
"build": "next build",
|
|
33
|
+
"build:pkg": "tsup && cp styles.css dist/styles.css",
|
|
34
|
+
"start": "next start",
|
|
35
|
+
"lint": "eslint"
|
|
36
|
+
},
|
|
28
37
|
"dependencies": {
|
|
29
38
|
"@radix-ui/react-context-menu": "^2.2.16",
|
|
30
39
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
@@ -54,12 +63,5 @@
|
|
|
54
63
|
"tsup": "^8.5.1",
|
|
55
64
|
"tw-animate-css": "^1.4.0",
|
|
56
65
|
"typescript": "^5.9.3"
|
|
57
|
-
},
|
|
58
|
-
"scripts": {
|
|
59
|
-
"dev": "next dev",
|
|
60
|
-
"build": "next build",
|
|
61
|
-
"build:pkg": "tsup",
|
|
62
|
-
"start": "next start",
|
|
63
|
-
"lint": "eslint"
|
|
64
66
|
}
|
|
65
|
-
}
|
|
67
|
+
}
|
package/styles.css
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* @unciatech/file-manager — base styles
|
|
2
|
+
* Single source of truth for CSS custom properties.
|
|
3
|
+
* - Imported by app/globals.css in the dev app
|
|
4
|
+
* - Copied to dist/styles.css for consumers to import
|
|
5
|
+
*
|
|
6
|
+
* Usage (consumer): import '@unciatech/file-manager/styles';
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/* ── Light mode ───────────────────────────────────────────────── */
|
|
10
|
+
:root {
|
|
11
|
+
--background: #ffffff;
|
|
12
|
+
--foreground: #09090b; /* zinc-950 */
|
|
13
|
+
--card: #ffffff;
|
|
14
|
+
--card-foreground: #09090b;
|
|
15
|
+
--popover: #ffffff;
|
|
16
|
+
--popover-foreground: #09090b;
|
|
17
|
+
--primary: #3b82f6; /* blue-500 */
|
|
18
|
+
--primary-foreground: #ffffff;
|
|
19
|
+
--secondary: #f4f4f5; /* zinc-100 */
|
|
20
|
+
--secondary-foreground: #18181b;
|
|
21
|
+
--muted: #f4f4f5;
|
|
22
|
+
--muted-foreground: #71717a; /* zinc-500 */
|
|
23
|
+
--accent: #f4f4f5;
|
|
24
|
+
--accent-foreground: #18181b;
|
|
25
|
+
--destructive: #dc2626; /* red-600 */
|
|
26
|
+
--destructive-foreground: #ffffff;
|
|
27
|
+
--border: oklch(94% 0.004 286.32);
|
|
28
|
+
--input: #e4e4e7; /* zinc-200 */
|
|
29
|
+
--ring: #a1a1aa; /* zinc-400 */
|
|
30
|
+
--radius: 0.5rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* ── Dark mode ────────────────────────────────────────────────── */
|
|
34
|
+
.dark {
|
|
35
|
+
--background: #09090b;
|
|
36
|
+
--foreground: #fafafa;
|
|
37
|
+
--card: #09090b;
|
|
38
|
+
--card-foreground: #fafafa;
|
|
39
|
+
--popover: #09090b;
|
|
40
|
+
--popover-foreground: #fafafa;
|
|
41
|
+
--primary: #2563eb; /* blue-600 */
|
|
42
|
+
--primary-foreground: #ffffff;
|
|
43
|
+
--secondary: #27272a; /* zinc-800 */
|
|
44
|
+
--secondary-foreground: #fafafa;
|
|
45
|
+
--muted: #18181b;
|
|
46
|
+
--muted-foreground: #71717a;
|
|
47
|
+
--accent: #18181b;
|
|
48
|
+
--accent-foreground: #fafafa;
|
|
49
|
+
--destructive: #dc2626;
|
|
50
|
+
--destructive-foreground: #ffffff;
|
|
51
|
+
--border: #27272a;
|
|
52
|
+
--input: #27272a;
|
|
53
|
+
--ring: #52525b; /* zinc-600 */
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ── Base resets ──────────────────────────────────────────────── */
|
|
57
|
+
*, *::before, *::after {
|
|
58
|
+
border-color: var(--border);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Suppress the thick native browser outline; use a subtle ring instead */
|
|
62
|
+
*:focus-visible {
|
|
63
|
+
outline: 2px solid var(--ring);
|
|
64
|
+
outline-offset: 2px;
|
|
65
|
+
border-radius: 2px;
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* ── Scrollbar ────────────────────────────────────────────────── */
|
|
70
|
+
::-webkit-scrollbar { width: 5px; }
|
|
71
|
+
::-webkit-scrollbar-track { background: transparent; }
|
|
72
|
+
::-webkit-scrollbar-thumb {
|
|
73
|
+
background: var(--input);
|
|
74
|
+
border-radius: 5px;
|
|
75
|
+
}
|
|
76
|
+
* {
|
|
77
|
+
scrollbar-width: thin;
|
|
78
|
+
scrollbar-color: var(--input) transparent;
|
|
79
|
+
}
|