@unciatech/file-manager 0.0.13 → 0.0.15

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 +59 -50
  2. package/package.json +1 -1
  3. package/styles.css +59 -50
package/dist/styles.css CHANGED
@@ -1,68 +1,72 @@
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 in your root layout to provide the CSS variables the
3
+ * file manager components depend on.
5
4
  *
6
- * Usage (consumer): import '@unciatech/file-manager/styles';
5
+ * Usage: import '@unciatech/file-manager/styles';
6
+ *
7
+ * How it works with Tailwind v4:
8
+ * Tailwind utility classes (e.g. bg-primary) resolve to var(--color-primary).
9
+ * This file defines those --color-* variables directly so they work in any
10
+ * consumer app without needing a @theme block or additional Tailwind config.
7
11
  */
8
12
 
9
13
  /* ── Light mode ───────────────────────────────────────────────── */
10
14
  :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;
15
+ --color-background: #ffffff;
16
+ --color-foreground: #09090b; /* zinc-950 */
17
+ --color-card: #ffffff;
18
+ --color-card-foreground: #09090b;
19
+ --color-popover: #ffffff;
20
+ --color-popover-foreground:#09090b;
21
+ --color-primary: #3b82f6; /* blue-500 */
22
+ --color-primary-foreground:#ffffff;
23
+ --color-secondary: #f4f4f5; /* zinc-100 */
24
+ --color-secondary-foreground:#18181b;
25
+ --color-muted: #f4f4f5;
26
+ --color-muted-foreground: #71717a; /* zinc-500 */
27
+ --color-accent: #f4f4f5;
28
+ --color-accent-foreground: #18181b;
29
+ --color-destructive: #dc2626; /* red-600 */
30
+ --color-destructive-foreground:#ffffff;
31
+ --color-border: oklch(94% 0.004 286.32);
32
+ --color-input: #e4e4e7; /* zinc-200 */
33
+ --color-ring: #a1a1aa; /* zinc-400 */
34
+ --radius: 0.5rem;
31
35
  }
32
36
 
33
37
  /* ── Dark mode ────────────────────────────────────────────────── */
34
38
  .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 */
39
+ --color-background: #09090b; /* zinc-950 */
40
+ --color-foreground: #fafafa; /* zinc-50 */
41
+ --color-card: #09090b;
42
+ --color-card-foreground: #fafafa;
43
+ --color-popover: #09090b;
44
+ --color-popover-foreground:#fafafa;
45
+ --color-primary: #2563eb; /* blue-600 */
46
+ --color-primary-foreground:#ffffff;
47
+ --color-secondary: #27272a; /* zinc-800 */
48
+ --color-secondary-foreground:#fafafa;
49
+ --color-muted: #18181b; /* zinc-900 */
50
+ --color-muted-foreground: #71717a;
51
+ --color-accent: #18181b;
52
+ --color-accent-foreground: #fafafa;
53
+ --color-destructive: #dc2626;
54
+ --color-destructive-foreground:#ffffff;
55
+ --color-border: #27272a; /* zinc-800 */
56
+ --color-input: #27272a;
57
+ --color-ring: #52525b; /* zinc-600 */
54
58
  }
55
59
 
56
- /* ── Base resets ──────────────────────────────────────────────── */
60
+ /* ── Border base reset ────────────────────────────────────────── */
57
61
  *, *::before, *::after {
58
- border-color: var(--border);
62
+ border-color: var(--color-border);
59
63
  }
60
64
 
61
- /* Suppress the thick native browser outline; use a subtle ring instead */
65
+ /* ── Focus ring ───────────────────────────────────────────────── */
66
+ /* Suppress the thick native browser outline on all elements */
62
67
  *:focus-visible {
63
- outline: 2px solid var(--ring);
68
+ outline: 2px solid var(--color-ring);
64
69
  outline-offset: 2px;
65
- border-radius: 2px;
66
70
  box-shadow: none;
67
71
  }
68
72
 
@@ -70,10 +74,15 @@
70
74
  ::-webkit-scrollbar { width: 5px; }
71
75
  ::-webkit-scrollbar-track { background: transparent; }
72
76
  ::-webkit-scrollbar-thumb {
73
- background: var(--input);
77
+ background: var(--color-input);
74
78
  border-radius: 5px;
75
79
  }
76
80
  * {
77
81
  scrollbar-width: thin;
78
- scrollbar-color: var(--input) transparent;
82
+ scrollbar-color: var(--color-input) transparent;
83
+ }
84
+
85
+ /* ── Smooth scroll ────────────────────────────────────────────── */
86
+ html {
87
+ scroll-behavior: smooth;
79
88
  }
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.15",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
package/styles.css CHANGED
@@ -1,68 +1,72 @@
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 in your root layout to provide the CSS variables the
3
+ * file manager components depend on.
5
4
  *
6
- * Usage (consumer): import '@unciatech/file-manager/styles';
5
+ * Usage: import '@unciatech/file-manager/styles';
6
+ *
7
+ * How it works with Tailwind v4:
8
+ * Tailwind utility classes (e.g. bg-primary) resolve to var(--color-primary).
9
+ * This file defines those --color-* variables directly so they work in any
10
+ * consumer app without needing a @theme block or additional Tailwind config.
7
11
  */
8
12
 
9
13
  /* ── Light mode ───────────────────────────────────────────────── */
10
14
  :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;
15
+ --color-background: #ffffff;
16
+ --color-foreground: #09090b; /* zinc-950 */
17
+ --color-card: #ffffff;
18
+ --color-card-foreground: #09090b;
19
+ --color-popover: #ffffff;
20
+ --color-popover-foreground:#09090b;
21
+ --color-primary: #3b82f6; /* blue-500 */
22
+ --color-primary-foreground:#ffffff;
23
+ --color-secondary: #f4f4f5; /* zinc-100 */
24
+ --color-secondary-foreground:#18181b;
25
+ --color-muted: #f4f4f5;
26
+ --color-muted-foreground: #71717a; /* zinc-500 */
27
+ --color-accent: #f4f4f5;
28
+ --color-accent-foreground: #18181b;
29
+ --color-destructive: #dc2626; /* red-600 */
30
+ --color-destructive-foreground:#ffffff;
31
+ --color-border: oklch(94% 0.004 286.32);
32
+ --color-input: #e4e4e7; /* zinc-200 */
33
+ --color-ring: #a1a1aa; /* zinc-400 */
34
+ --radius: 0.5rem;
31
35
  }
32
36
 
33
37
  /* ── Dark mode ────────────────────────────────────────────────── */
34
38
  .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 */
39
+ --color-background: #09090b; /* zinc-950 */
40
+ --color-foreground: #fafafa; /* zinc-50 */
41
+ --color-card: #09090b;
42
+ --color-card-foreground: #fafafa;
43
+ --color-popover: #09090b;
44
+ --color-popover-foreground:#fafafa;
45
+ --color-primary: #2563eb; /* blue-600 */
46
+ --color-primary-foreground:#ffffff;
47
+ --color-secondary: #27272a; /* zinc-800 */
48
+ --color-secondary-foreground:#fafafa;
49
+ --color-muted: #18181b; /* zinc-900 */
50
+ --color-muted-foreground: #71717a;
51
+ --color-accent: #18181b;
52
+ --color-accent-foreground: #fafafa;
53
+ --color-destructive: #dc2626;
54
+ --color-destructive-foreground:#ffffff;
55
+ --color-border: #27272a; /* zinc-800 */
56
+ --color-input: #27272a;
57
+ --color-ring: #52525b; /* zinc-600 */
54
58
  }
55
59
 
56
- /* ── Base resets ──────────────────────────────────────────────── */
60
+ /* ── Border base reset ────────────────────────────────────────── */
57
61
  *, *::before, *::after {
58
- border-color: var(--border);
62
+ border-color: var(--color-border);
59
63
  }
60
64
 
61
- /* Suppress the thick native browser outline; use a subtle ring instead */
65
+ /* ── Focus ring ───────────────────────────────────────────────── */
66
+ /* Suppress the thick native browser outline on all elements */
62
67
  *:focus-visible {
63
- outline: 2px solid var(--ring);
68
+ outline: 2px solid var(--color-ring);
64
69
  outline-offset: 2px;
65
- border-radius: 2px;
66
70
  box-shadow: none;
67
71
  }
68
72
 
@@ -70,10 +74,15 @@
70
74
  ::-webkit-scrollbar { width: 5px; }
71
75
  ::-webkit-scrollbar-track { background: transparent; }
72
76
  ::-webkit-scrollbar-thumb {
73
- background: var(--input);
77
+ background: var(--color-input);
74
78
  border-radius: 5px;
75
79
  }
76
80
  * {
77
81
  scrollbar-width: thin;
78
- scrollbar-color: var(--input) transparent;
82
+ scrollbar-color: var(--color-input) transparent;
83
+ }
84
+
85
+ /* ── Smooth scroll ────────────────────────────────────────────── */
86
+ html {
87
+ scroll-behavior: smooth;
79
88
  }