@unciatech/file-manager 0.0.9 → 0.0.10

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.
@@ -0,0 +1,69 @@
1
+ /* @unciatech/file-manager — base styles
2
+ * Import this file in your app's root layout to get the required CSS
3
+ * custom properties for the file manager to render correctly.
4
+ *
5
+ * Usage: import '@unciatech/file-manager/styles';
6
+ */
7
+
8
+ /* ── Light mode variables ─────────────────────────────────────── */
9
+ :root {
10
+ --fm-background: #ffffff;
11
+ --fm-foreground: #09090b; /* zinc-950 */
12
+ --fm-card: #ffffff;
13
+ --fm-card-foreground: #09090b;
14
+ --fm-popover: #ffffff;
15
+ --fm-popover-foreground: #09090b;
16
+ --fm-primary: #3b82f6; /* blue-500 */
17
+ --fm-primary-foreground: #ffffff;
18
+ --fm-secondary: #f4f4f5; /* zinc-100 */
19
+ --fm-secondary-foreground: #18181b;
20
+ --fm-muted: #f4f4f5;
21
+ --fm-muted-foreground: #71717a; /* zinc-500 */
22
+ --fm-accent: #f4f4f5;
23
+ --fm-accent-foreground: #18181b;
24
+ --fm-destructive: #dc2626; /* red-600 */
25
+ --fm-destructive-foreground: #ffffff;
26
+ --fm-border: oklch(94% 0.004 286.32);
27
+ --fm-input: #e4e4e7; /* zinc-200 */
28
+ --fm-ring: #a1a1aa; /* zinc-400 */
29
+ --fm-radius: 0.5rem;
30
+ }
31
+
32
+ /* ── Dark mode variables ──────────────────────────────────────── */
33
+ .dark {
34
+ --fm-background: #09090b; /* zinc-950 */
35
+ --fm-foreground: #fafafa; /* zinc-50 */
36
+ --fm-card: #09090b;
37
+ --fm-card-foreground: #fafafa;
38
+ --fm-popover: #09090b;
39
+ --fm-popover-foreground: #fafafa;
40
+ --fm-primary: #2563eb; /* blue-600 */
41
+ --fm-primary-foreground: #ffffff;
42
+ --fm-secondary: #27272a; /* zinc-800 */
43
+ --fm-secondary-foreground: #fafafa;
44
+ --fm-muted: #18181b; /* zinc-900 */
45
+ --fm-muted-foreground: #71717a;
46
+ --fm-accent: #18181b;
47
+ --fm-accent-foreground: #fafafa;
48
+ --fm-destructive: #dc2626;
49
+ --fm-destructive-foreground: #ffffff;
50
+ --fm-border: #27272a; /* zinc-800 */
51
+ --fm-input: #27272a;
52
+ --fm-ring: #52525b; /* zinc-600 */
53
+ }
54
+
55
+ /* ── Scrollbar ────────────────────────────────────────────────── */
56
+ [data-file-manager] ::-webkit-scrollbar {
57
+ width: 5px;
58
+ }
59
+ [data-file-manager] ::-webkit-scrollbar-track {
60
+ background: transparent;
61
+ }
62
+ [data-file-manager] ::-webkit-scrollbar-thumb {
63
+ background: var(--fm-input);
64
+ border-radius: 5px;
65
+ }
66
+ [data-file-manager] * {
67
+ scrollbar-width: thin;
68
+ scrollbar-color: var(--fm-input) transparent;
69
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unciatech/file-manager",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
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,69 @@
1
+ /* @unciatech/file-manager — base styles
2
+ * Import this file in your app's root layout to get the required CSS
3
+ * custom properties for the file manager to render correctly.
4
+ *
5
+ * Usage: import '@unciatech/file-manager/styles';
6
+ */
7
+
8
+ /* ── Light mode variables ─────────────────────────────────────── */
9
+ :root {
10
+ --fm-background: #ffffff;
11
+ --fm-foreground: #09090b; /* zinc-950 */
12
+ --fm-card: #ffffff;
13
+ --fm-card-foreground: #09090b;
14
+ --fm-popover: #ffffff;
15
+ --fm-popover-foreground: #09090b;
16
+ --fm-primary: #3b82f6; /* blue-500 */
17
+ --fm-primary-foreground: #ffffff;
18
+ --fm-secondary: #f4f4f5; /* zinc-100 */
19
+ --fm-secondary-foreground: #18181b;
20
+ --fm-muted: #f4f4f5;
21
+ --fm-muted-foreground: #71717a; /* zinc-500 */
22
+ --fm-accent: #f4f4f5;
23
+ --fm-accent-foreground: #18181b;
24
+ --fm-destructive: #dc2626; /* red-600 */
25
+ --fm-destructive-foreground: #ffffff;
26
+ --fm-border: oklch(94% 0.004 286.32);
27
+ --fm-input: #e4e4e7; /* zinc-200 */
28
+ --fm-ring: #a1a1aa; /* zinc-400 */
29
+ --fm-radius: 0.5rem;
30
+ }
31
+
32
+ /* ── Dark mode variables ──────────────────────────────────────── */
33
+ .dark {
34
+ --fm-background: #09090b; /* zinc-950 */
35
+ --fm-foreground: #fafafa; /* zinc-50 */
36
+ --fm-card: #09090b;
37
+ --fm-card-foreground: #fafafa;
38
+ --fm-popover: #09090b;
39
+ --fm-popover-foreground: #fafafa;
40
+ --fm-primary: #2563eb; /* blue-600 */
41
+ --fm-primary-foreground: #ffffff;
42
+ --fm-secondary: #27272a; /* zinc-800 */
43
+ --fm-secondary-foreground: #fafafa;
44
+ --fm-muted: #18181b; /* zinc-900 */
45
+ --fm-muted-foreground: #71717a;
46
+ --fm-accent: #18181b;
47
+ --fm-accent-foreground: #fafafa;
48
+ --fm-destructive: #dc2626;
49
+ --fm-destructive-foreground: #ffffff;
50
+ --fm-border: #27272a; /* zinc-800 */
51
+ --fm-input: #27272a;
52
+ --fm-ring: #52525b; /* zinc-600 */
53
+ }
54
+
55
+ /* ── Scrollbar ────────────────────────────────────────────────── */
56
+ [data-file-manager] ::-webkit-scrollbar {
57
+ width: 5px;
58
+ }
59
+ [data-file-manager] ::-webkit-scrollbar-track {
60
+ background: transparent;
61
+ }
62
+ [data-file-manager] ::-webkit-scrollbar-thumb {
63
+ background: var(--fm-input);
64
+ border-radius: 5px;
65
+ }
66
+ [data-file-manager] * {
67
+ scrollbar-width: thin;
68
+ scrollbar-color: var(--fm-input) transparent;
69
+ }