@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.
- package/dist/styles.css +59 -50
- package/package.json +1 -1
- package/styles.css +59 -50
package/dist/styles.css
CHANGED
|
@@ -1,68 +1,72 @@
|
|
|
1
1
|
/* @unciatech/file-manager — base styles
|
|
2
|
-
*
|
|
3
|
-
*
|
|
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
|
|
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:
|
|
12
|
-
--foreground:
|
|
13
|
-
--card:
|
|
14
|
-
--card-foreground:
|
|
15
|
-
--popover:
|
|
16
|
-
--popover-foreground
|
|
17
|
-
--primary:
|
|
18
|
-
--primary-foreground
|
|
19
|
-
--secondary:
|
|
20
|
-
--secondary-foreground
|
|
21
|
-
--muted:
|
|
22
|
-
--muted-foreground:
|
|
23
|
-
--accent:
|
|
24
|
-
--accent-foreground: #18181b;
|
|
25
|
-
--destructive:
|
|
26
|
-
--destructive-foreground
|
|
27
|
-
--border:
|
|
28
|
-
--input:
|
|
29
|
-
--ring:
|
|
30
|
-
--radius:
|
|
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:
|
|
36
|
-
--foreground:
|
|
37
|
-
--card:
|
|
38
|
-
--card-foreground:
|
|
39
|
-
--popover:
|
|
40
|
-
--popover-foreground
|
|
41
|
-
--primary:
|
|
42
|
-
--primary-foreground
|
|
43
|
-
--secondary:
|
|
44
|
-
--secondary-foreground
|
|
45
|
-
--muted:
|
|
46
|
-
--muted-foreground:
|
|
47
|
-
--accent:
|
|
48
|
-
--accent-foreground: #fafafa;
|
|
49
|
-
--destructive:
|
|
50
|
-
--destructive-foreground
|
|
51
|
-
--border:
|
|
52
|
-
--input:
|
|
53
|
-
--ring:
|
|
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
|
-
/* ──
|
|
60
|
+
/* ── Border base reset ────────────────────────────────────────── */
|
|
57
61
|
*, *::before, *::after {
|
|
58
|
-
border-color: var(--border);
|
|
62
|
+
border-color: var(--color-border);
|
|
59
63
|
}
|
|
60
64
|
|
|
61
|
-
/*
|
|
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
package/styles.css
CHANGED
|
@@ -1,68 +1,72 @@
|
|
|
1
1
|
/* @unciatech/file-manager — base styles
|
|
2
|
-
*
|
|
3
|
-
*
|
|
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
|
|
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:
|
|
12
|
-
--foreground:
|
|
13
|
-
--card:
|
|
14
|
-
--card-foreground:
|
|
15
|
-
--popover:
|
|
16
|
-
--popover-foreground
|
|
17
|
-
--primary:
|
|
18
|
-
--primary-foreground
|
|
19
|
-
--secondary:
|
|
20
|
-
--secondary-foreground
|
|
21
|
-
--muted:
|
|
22
|
-
--muted-foreground:
|
|
23
|
-
--accent:
|
|
24
|
-
--accent-foreground: #18181b;
|
|
25
|
-
--destructive:
|
|
26
|
-
--destructive-foreground
|
|
27
|
-
--border:
|
|
28
|
-
--input:
|
|
29
|
-
--ring:
|
|
30
|
-
--radius:
|
|
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:
|
|
36
|
-
--foreground:
|
|
37
|
-
--card:
|
|
38
|
-
--card-foreground:
|
|
39
|
-
--popover:
|
|
40
|
-
--popover-foreground
|
|
41
|
-
--primary:
|
|
42
|
-
--primary-foreground
|
|
43
|
-
--secondary:
|
|
44
|
-
--secondary-foreground
|
|
45
|
-
--muted:
|
|
46
|
-
--muted-foreground:
|
|
47
|
-
--accent:
|
|
48
|
-
--accent-foreground: #fafafa;
|
|
49
|
-
--destructive:
|
|
50
|
-
--destructive-foreground
|
|
51
|
-
--border:
|
|
52
|
-
--input:
|
|
53
|
-
--ring:
|
|
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
|
-
/* ──
|
|
60
|
+
/* ── Border base reset ────────────────────────────────────────── */
|
|
57
61
|
*, *::before, *::after {
|
|
58
|
-
border-color: var(--border);
|
|
62
|
+
border-color: var(--color-border);
|
|
59
63
|
}
|
|
60
64
|
|
|
61
|
-
/*
|
|
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
|
}
|