@unciatech/file-manager 0.0.27 → 0.0.29
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.cjs +10 -1
- package/dist/cli.js +10 -1
- package/dist/styles.css +1 -50
- package/package.json +1 -1
- package/styles.css +1 -50
package/dist/cli.cjs
CHANGED
|
@@ -293,8 +293,17 @@ export default defineConfig({
|
|
|
293
293
|
import_fs.default.writeFileSync(viteConfigPath, viteConfig);
|
|
294
294
|
const cssPath = import_path.default.join(targetDir, "src", "index.css");
|
|
295
295
|
import_fs.default.writeFileSync(cssPath, `@import "tailwindcss";
|
|
296
|
-
@source "
|
|
296
|
+
@source "../node_modules/@unciatech/file-manager/dist";
|
|
297
297
|
`);
|
|
298
|
+
const mainPath = import_path.default.join(targetDir, "src", "main.tsx");
|
|
299
|
+
if (import_fs.default.existsSync(mainPath)) {
|
|
300
|
+
let mainContent = import_fs.default.readFileSync(mainPath, "utf8");
|
|
301
|
+
if (!mainContent.includes("@unciatech/file-manager/styles")) {
|
|
302
|
+
mainContent = `import '@unciatech/file-manager/styles';
|
|
303
|
+
` + mainContent;
|
|
304
|
+
import_fs.default.writeFileSync(mainPath, mainContent);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
298
307
|
const componentsDir = import_path.default.join(targetDir, "src", "components");
|
|
299
308
|
if (!import_fs.default.existsSync(componentsDir)) import_fs.default.mkdirSync(componentsDir, { recursive: true });
|
|
300
309
|
import_fs.default.writeFileSync(import_path.default.join(componentsDir, "FileManagerDemo.tsx"), TEMPLATE, "utf-8");
|
package/dist/cli.js
CHANGED
|
@@ -270,8 +270,17 @@ export default defineConfig({
|
|
|
270
270
|
fs.writeFileSync(viteConfigPath, viteConfig);
|
|
271
271
|
const cssPath = path.join(targetDir, "src", "index.css");
|
|
272
272
|
fs.writeFileSync(cssPath, `@import "tailwindcss";
|
|
273
|
-
@source "
|
|
273
|
+
@source "../node_modules/@unciatech/file-manager/dist";
|
|
274
274
|
`);
|
|
275
|
+
const mainPath = path.join(targetDir, "src", "main.tsx");
|
|
276
|
+
if (fs.existsSync(mainPath)) {
|
|
277
|
+
let mainContent = fs.readFileSync(mainPath, "utf8");
|
|
278
|
+
if (!mainContent.includes("@unciatech/file-manager/styles")) {
|
|
279
|
+
mainContent = `import '@unciatech/file-manager/styles';
|
|
280
|
+
` + mainContent;
|
|
281
|
+
fs.writeFileSync(mainPath, mainContent);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
275
284
|
const componentsDir = path.join(targetDir, "src", "components");
|
|
276
285
|
if (!fs.existsSync(componentsDir)) fs.mkdirSync(componentsDir, { recursive: true });
|
|
277
286
|
fs.writeFileSync(path.join(componentsDir, "FileManagerDemo.tsx"), TEMPLATE, "utf-8");
|
package/dist/styles.css
CHANGED
|
@@ -34,30 +34,7 @@
|
|
|
34
34
|
--radius: 0.5rem;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
@media (prefers-color-scheme: dark) {
|
|
39
|
-
:root {
|
|
40
|
-
--color-background: #09090b; /* zinc-950 */
|
|
41
|
-
--color-foreground: #fafafa; /* zinc-50 */
|
|
42
|
-
--color-card: #09090b;
|
|
43
|
-
--color-card-foreground: #fafafa;
|
|
44
|
-
--color-popover: #09090b;
|
|
45
|
-
--color-popover-foreground:#fafafa;
|
|
46
|
-
--color-primary: #2563eb; /* blue-600 */
|
|
47
|
-
--color-primary-foreground:#ffffff;
|
|
48
|
-
--color-secondary: #27272a; /* zinc-800 */
|
|
49
|
-
--color-secondary-foreground:#fafafa;
|
|
50
|
-
--color-muted: #18181b; /* zinc-900 */
|
|
51
|
-
--color-muted-foreground: #71717a;
|
|
52
|
-
--color-accent: #18181b;
|
|
53
|
-
--color-accent-foreground: #fafafa;
|
|
54
|
-
--color-destructive: #dc2626;
|
|
55
|
-
--color-destructive-foreground:#ffffff;
|
|
56
|
-
--color-border: #27272a; /* zinc-800 */
|
|
57
|
-
--color-input: #27272a;
|
|
58
|
-
--color-ring: #52525b; /* zinc-600 */
|
|
59
|
-
}
|
|
60
|
-
}
|
|
37
|
+
|
|
61
38
|
|
|
62
39
|
/* Manual .dark class (toggle button override) */
|
|
63
40
|
.dark {
|
|
@@ -82,30 +59,4 @@
|
|
|
82
59
|
--color-ring: #52525b;
|
|
83
60
|
}
|
|
84
61
|
|
|
85
|
-
/* ── Border base reset ────────────────────────────────────────── */
|
|
86
|
-
*, *::before, *::after {
|
|
87
|
-
border-color: var(--color-border);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* ── Focus ring ───────────────────────────────────────────────── */
|
|
91
|
-
/* Suppress the thick native browser outline on all elements */
|
|
92
|
-
*:focus-visible {
|
|
93
|
-
outline: none !important;
|
|
94
|
-
}
|
|
95
62
|
|
|
96
|
-
/* ── Scrollbar ────────────────────────────────────────────────── */
|
|
97
|
-
::-webkit-scrollbar { width: 5px; }
|
|
98
|
-
::-webkit-scrollbar-track { background: transparent; }
|
|
99
|
-
::-webkit-scrollbar-thumb {
|
|
100
|
-
background: var(--color-input);
|
|
101
|
-
border-radius: 5px;
|
|
102
|
-
}
|
|
103
|
-
* {
|
|
104
|
-
scrollbar-width: thin;
|
|
105
|
-
scrollbar-color: var(--color-input) transparent;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/* ── Smooth scroll ────────────────────────────────────────────── */
|
|
109
|
-
html {
|
|
110
|
-
scroll-behavior: smooth;
|
|
111
|
-
}
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -34,30 +34,7 @@
|
|
|
34
34
|
--radius: 0.5rem;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
@media (prefers-color-scheme: dark) {
|
|
39
|
-
:root {
|
|
40
|
-
--color-background: #09090b; /* zinc-950 */
|
|
41
|
-
--color-foreground: #fafafa; /* zinc-50 */
|
|
42
|
-
--color-card: #09090b;
|
|
43
|
-
--color-card-foreground: #fafafa;
|
|
44
|
-
--color-popover: #09090b;
|
|
45
|
-
--color-popover-foreground:#fafafa;
|
|
46
|
-
--color-primary: #2563eb; /* blue-600 */
|
|
47
|
-
--color-primary-foreground:#ffffff;
|
|
48
|
-
--color-secondary: #27272a; /* zinc-800 */
|
|
49
|
-
--color-secondary-foreground:#fafafa;
|
|
50
|
-
--color-muted: #18181b; /* zinc-900 */
|
|
51
|
-
--color-muted-foreground: #71717a;
|
|
52
|
-
--color-accent: #18181b;
|
|
53
|
-
--color-accent-foreground: #fafafa;
|
|
54
|
-
--color-destructive: #dc2626;
|
|
55
|
-
--color-destructive-foreground:#ffffff;
|
|
56
|
-
--color-border: #27272a; /* zinc-800 */
|
|
57
|
-
--color-input: #27272a;
|
|
58
|
-
--color-ring: #52525b; /* zinc-600 */
|
|
59
|
-
}
|
|
60
|
-
}
|
|
37
|
+
|
|
61
38
|
|
|
62
39
|
/* Manual .dark class (toggle button override) */
|
|
63
40
|
.dark {
|
|
@@ -82,30 +59,4 @@
|
|
|
82
59
|
--color-ring: #52525b;
|
|
83
60
|
}
|
|
84
61
|
|
|
85
|
-
/* ── Border base reset ────────────────────────────────────────── */
|
|
86
|
-
*, *::before, *::after {
|
|
87
|
-
border-color: var(--color-border);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* ── Focus ring ───────────────────────────────────────────────── */
|
|
91
|
-
/* Suppress the thick native browser outline on all elements */
|
|
92
|
-
*:focus-visible {
|
|
93
|
-
outline: none !important;
|
|
94
|
-
}
|
|
95
62
|
|
|
96
|
-
/* ── Scrollbar ────────────────────────────────────────────────── */
|
|
97
|
-
::-webkit-scrollbar { width: 5px; }
|
|
98
|
-
::-webkit-scrollbar-track { background: transparent; }
|
|
99
|
-
::-webkit-scrollbar-thumb {
|
|
100
|
-
background: var(--color-input);
|
|
101
|
-
border-radius: 5px;
|
|
102
|
-
}
|
|
103
|
-
* {
|
|
104
|
-
scrollbar-width: thin;
|
|
105
|
-
scrollbar-color: var(--color-input) transparent;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/* ── Smooth scroll ────────────────────────────────────────────── */
|
|
109
|
-
html {
|
|
110
|
-
scroll-behavior: smooth;
|
|
111
|
-
}
|