@unciatech/file-manager 0.0.13 → 0.0.14

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.
Files changed (3) hide show
  1. package/dist/styles.css +53 -63
  2. package/package.json +1 -1
  3. package/styles.css +53 -63
package/dist/styles.css CHANGED
@@ -1,79 +1,69 @@
1
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
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.
5
4
  *
6
- * Usage (consumer): import '@unciatech/file-manager/styles';
5
+ * Usage: import '@unciatech/file-manager/styles';
7
6
  */
8
7
 
9
- /* ── Light mode ───────────────────────────────────────────────── */
8
+ /* ── Light mode variables ─────────────────────────────────────── */
10
9
  :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;
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;
31
30
  }
32
31
 
33
- /* ── Dark mode ────────────────────────────────────────────────── */
32
+ /* ── Dark mode variables ──────────────────────────────────────── */
34
33
  .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 */
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 */
54
53
  }
55
54
 
56
- /* ── Base resets ──────────────────────────────────────────────── */
57
- *, *::before, *::after {
58
- border-color: var(--border);
55
+ /* ── Scrollbar ────────────────────────────────────────────────── */
56
+ [data-file-manager] ::-webkit-scrollbar {
57
+ width: 5px;
59
58
  }
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;
59
+ [data-file-manager] ::-webkit-scrollbar-track {
60
+ background: transparent;
67
61
  }
68
-
69
- /* ── Scrollbar ────────────────────────────────────────────────── */
70
- ::-webkit-scrollbar { width: 5px; }
71
- ::-webkit-scrollbar-track { background: transparent; }
72
- ::-webkit-scrollbar-thumb {
73
- background: var(--input);
62
+ [data-file-manager] ::-webkit-scrollbar-thumb {
63
+ background: var(--fm-input);
74
64
  border-radius: 5px;
75
65
  }
76
- * {
66
+ [data-file-manager] * {
77
67
  scrollbar-width: thin;
78
- scrollbar-color: var(--input) transparent;
68
+ scrollbar-color: var(--fm-input) transparent;
79
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unciatech/file-manager",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
package/styles.css CHANGED
@@ -1,79 +1,69 @@
1
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
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.
5
4
  *
6
- * Usage (consumer): import '@unciatech/file-manager/styles';
5
+ * Usage: import '@unciatech/file-manager/styles';
7
6
  */
8
7
 
9
- /* ── Light mode ───────────────────────────────────────────────── */
8
+ /* ── Light mode variables ─────────────────────────────────────── */
10
9
  :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;
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;
31
30
  }
32
31
 
33
- /* ── Dark mode ────────────────────────────────────────────────── */
32
+ /* ── Dark mode variables ──────────────────────────────────────── */
34
33
  .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 */
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 */
54
53
  }
55
54
 
56
- /* ── Base resets ──────────────────────────────────────────────── */
57
- *, *::before, *::after {
58
- border-color: var(--border);
55
+ /* ── Scrollbar ────────────────────────────────────────────────── */
56
+ [data-file-manager] ::-webkit-scrollbar {
57
+ width: 5px;
59
58
  }
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;
59
+ [data-file-manager] ::-webkit-scrollbar-track {
60
+ background: transparent;
67
61
  }
68
-
69
- /* ── Scrollbar ────────────────────────────────────────────────── */
70
- ::-webkit-scrollbar { width: 5px; }
71
- ::-webkit-scrollbar-track { background: transparent; }
72
- ::-webkit-scrollbar-thumb {
73
- background: var(--input);
62
+ [data-file-manager] ::-webkit-scrollbar-thumb {
63
+ background: var(--fm-input);
74
64
  border-radius: 5px;
75
65
  }
76
- * {
66
+ [data-file-manager] * {
77
67
  scrollbar-width: thin;
78
- scrollbar-color: var(--input) transparent;
68
+ scrollbar-color: var(--fm-input) transparent;
79
69
  }