@riligar/elysia-sqlite 1.1.0

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,123 @@
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ html,
8
+ body,
9
+ #root {
10
+ height: 100%;
11
+ }
12
+
13
+ body {
14
+ font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
15
+ -webkit-font-smoothing: antialiased;
16
+ background-color: #ffffff;
17
+ color: #11181c;
18
+ }
19
+
20
+ /* Scrollbar - Minimalist */
21
+ ::-webkit-scrollbar {
22
+ width: 6px;
23
+ height: 6px;
24
+ }
25
+
26
+ ::-webkit-scrollbar-track {
27
+ background: transparent;
28
+ }
29
+
30
+ ::-webkit-scrollbar-thumb {
31
+ background: #e5e7eb;
32
+ border-radius: 3px;
33
+ }
34
+
35
+ ::-webkit-scrollbar-thumb:hover {
36
+ background: #d1d5db;
37
+ }
38
+
39
+ /* Sidebar Overrides (if needed beyond AppShell default) */
40
+ .mantine-AppShell-navbar {
41
+ background-color: #fafafa !important;
42
+ border-right: 1px solid #e5e7eb !important;
43
+ }
44
+
45
+ [data-mantine-color-scheme="dark"] .mantine-AppShell-navbar {
46
+ background-color: #111111 !important;
47
+ border-right: 1px solid #222222 !important;
48
+ }
49
+
50
+ /* Table - Clean Rows */
51
+ .mantine-Table-table {
52
+ border-collapse: collapse;
53
+ }
54
+
55
+ .mantine-Table-thead tr th {
56
+ border-bottom: 1px solid #e5e7eb !important;
57
+ font-weight: 500;
58
+ font-size: 12px;
59
+ color: #687076; /* Secondary text */
60
+ text-transform: uppercase;
61
+ letter-spacing: 0.05em;
62
+ }
63
+
64
+ .mantine-Table-tbody tr td {
65
+ font-size: 13px;
66
+ color: #11181C;
67
+ border-bottom: 1px solid #f3f4f6;
68
+ padding: 8px 16px !important;
69
+ }
70
+
71
+ .mantine-Table-tbody tr[data-hover]:hover {
72
+ background-color: #F9FAFB;
73
+ }
74
+
75
+ [data-mantine-color-scheme="dark"] .mantine-Table-tbody tr td {
76
+ color: #C1C2C5;
77
+ border-bottom-color: #2C2E33;
78
+ }
79
+
80
+ [data-mantine-color-scheme="dark"] .mantine-Table-tbody tr[data-hover]:hover {
81
+ background-color: #25262B;
82
+ }
83
+
84
+ /* Editable Cell */
85
+ .editable-cell {
86
+ padding: 4px 8px;
87
+ margin: -4px -8px;
88
+ border-radius: 4px;
89
+ transition: all 0.15s ease;
90
+ }
91
+
92
+ .editable-cell:hover {
93
+ background-color: #f3f4f6;
94
+ color: #000000;
95
+ }
96
+
97
+ /* NavLink Styles */
98
+ .mantine-NavLink-root {
99
+ color: #687076;
100
+ transition: all 0.2s ease;
101
+ }
102
+
103
+ .mantine-NavLink-root:hover {
104
+ background-color: #F9FAFB;
105
+ }
106
+
107
+ .mantine-NavLink-root[data-active] {
108
+ background-color: #F3F4F6;
109
+ color: #11181C;
110
+ }
111
+
112
+ [data-mantine-color-scheme="dark"] .mantine-NavLink-root {
113
+ color: #909296;
114
+ }
115
+
116
+ [data-mantine-color-scheme="dark"] .mantine-NavLink-root:hover {
117
+ background-color: #25262B;
118
+ }
119
+
120
+ [data-mantine-color-scheme="dark"] .mantine-NavLink-root[data-active] {
121
+ background-color: #2C2E33;
122
+ color: #FFFFFF;
123
+ }
@@ -0,0 +1,115 @@
1
+ import React from "react";
2
+ import ReactDOM from "react-dom/client";
3
+ import { MantineProvider, createTheme } from "@mantine/core";
4
+ import { Notifications } from "@mantine/notifications";
5
+ import App from "./App";
6
+ import "@mantine/core/styles.css";
7
+ import "@mantine/notifications/styles.css";
8
+ import "./index.css";
9
+
10
+ // Notion-inspired theme
11
+ const theme = createTheme({
12
+ fontFamily: "Montserrat, -apple-system, BlinkMacSystemFont, sans-serif",
13
+ primaryColor: "dark",
14
+ defaultRadius: 6,
15
+ colors: {
16
+ // Custom monochromatic gray scale from design.md
17
+ gray: [
18
+ "#F9FAFB", // 0 - app bg / sidebar (lightest)
19
+ "#F3F4F6", // 1 - hover
20
+ "#E5E7EB", // 2 - borders / lines
21
+ "#D1D5DB", // 3
22
+ "#9CA3AF", // 4
23
+ "#6B7280", // 5 - secondary text
24
+ "#4B5563", // 6
25
+ "#374151", // 7
26
+ "#1F2937", // 8
27
+ "#11181C", // 9 - primary text
28
+ ],
29
+ dark: [
30
+ "#C1C2C5", // 0
31
+ "#A6A7AB", // 1
32
+ "#909296", // 2
33
+ "#5C5F66", // 3
34
+ "#373A40", // 4
35
+ "#2C2E33", // 5
36
+ "#25262B", // 6
37
+ "#1A1B1E", // 7
38
+ "#141517", // 8
39
+ "#101113", // 9
40
+ ],
41
+ },
42
+ components: {
43
+ Button: {
44
+ defaultProps: {
45
+ size: "sm", // 32px height
46
+ },
47
+ styles: (theme, params) => ({
48
+ root: {
49
+ height: "32px",
50
+ fontWeight: 500,
51
+ border:
52
+ params.variant === "default" ? "1px solid #E5E7EB" : undefined,
53
+ backgroundColor: params.variant === "filled" ? "#000000" : undefined, // Primary Black
54
+ color: params.variant === "filled" ? "#FFFFFF" : undefined,
55
+ "&:hover": {
56
+ backgroundColor:
57
+ params.variant === "filled" ? "#2f2f2f" : undefined,
58
+ },
59
+ },
60
+ }),
61
+ },
62
+ Table: {
63
+ defaultProps: {
64
+ withColumnBorders: false,
65
+ verticalSpacing: "sm",
66
+ },
67
+ },
68
+ TextInput: {
69
+ styles: {
70
+ input: {
71
+ border: "1px solid #E5E5E5",
72
+ "&:focus": {
73
+ borderColor: "#000000",
74
+ },
75
+ },
76
+ },
77
+ },
78
+ Modal: {
79
+ styles: {
80
+ header: {
81
+ backgroundColor: "transparent",
82
+ },
83
+ content: {
84
+ boxShadow: "0 4px 20px rgba(0,0,0,0.05)",
85
+ },
86
+ overlay: {
87
+ backdropFilter: "blur(4px)",
88
+ },
89
+ },
90
+ },
91
+ Badge: {
92
+ defaultProps: {
93
+ variant: "light",
94
+ radius: "sm",
95
+ },
96
+ },
97
+ NavLink: {
98
+ styles: {
99
+ root: {
100
+ borderRadius: 6,
101
+ fontWeight: 500,
102
+ },
103
+ },
104
+ },
105
+ },
106
+ });
107
+
108
+ ReactDOM.createRoot(document.getElementById("root")).render(
109
+ <React.StrictMode>
110
+ <MantineProvider theme={theme} defaultColorScheme="light">
111
+ <Notifications position="bottom-right" />
112
+ <App />
113
+ </MantineProvider>
114
+ </React.StrictMode>
115
+ );
@@ -0,0 +1,19 @@
1
+ import { defineConfig } from "vite";
2
+ import react from "@vitejs/plugin-react";
3
+
4
+ export default defineConfig({
5
+ plugins: [react()],
6
+ base: "./",
7
+ build: {
8
+ outDir: "dist",
9
+ emptyOutDir: true,
10
+ },
11
+ server: {
12
+ proxy: {
13
+ "/admin": {
14
+ target: "http://localhost:3000",
15
+ changeOrigin: true,
16
+ },
17
+ },
18
+ },
19
+ });