@actuate-media/cms-admin 0.1.3 → 0.1.4

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Actuate Media
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Actuate Media
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -18,84 +18,84 @@ import HorizontalRule from '@tiptap/extension-horizontal-rule';
18
18
  import { common, createLowlight } from 'lowlight';
19
19
  import { Bold, Italic, Underline, Strikethrough, Code, Heading1, Heading2, Heading3, List, ListOrdered, Quote, FileCode, Minus, AlignLeft, AlignCenter, AlignRight, Link as LinkIcon, Image as ImageIcon, Table as TableIcon, Columns, Rows, Trash2, Undo, Redo, } from 'lucide-react';
20
20
  const lowlight = createLowlight(common);
21
- const editorStyles = `
22
- .ProseMirror {
23
- min-height: 300px;
24
- outline: none;
25
- padding: 1rem;
26
- }
27
- .ProseMirror h1 { font-size: 2em; font-weight: 700; margin: 0.67em 0; }
28
- .ProseMirror h2 { font-size: 1.5em; font-weight: 700; margin: 0.75em 0; }
29
- .ProseMirror h3 { font-size: 1.17em; font-weight: 700; margin: 0.83em 0; }
30
- .ProseMirror h4 { font-size: 1em; font-weight: 700; margin: 1em 0; }
31
- .ProseMirror h5 { font-size: 0.83em; font-weight: 700; margin: 1.17em 0; }
32
- .ProseMirror h6 { font-size: 0.67em; font-weight: 700; margin: 1.33em 0; }
33
- .ProseMirror ul { list-style: disc; padding-left: 1.5rem; margin: 0.5em 0; }
34
- .ProseMirror ol { list-style: decimal; padding-left: 1.5rem; margin: 0.5em 0; }
35
- .ProseMirror li { margin: 0.25em 0; }
36
- .ProseMirror p { margin: 0.5em 0; }
37
- .ProseMirror table {
38
- border-collapse: collapse;
39
- width: 100%;
40
- margin: 1rem 0;
41
- }
42
- .ProseMirror th,
43
- .ProseMirror td {
44
- border: 1px solid #d1d5db;
45
- padding: 0.5rem;
46
- text-align: left;
47
- min-width: 80px;
48
- }
49
- .ProseMirror th {
50
- background-color: #f3f4f6;
51
- font-weight: 600;
52
- }
53
- .ProseMirror img {
54
- max-width: 100%;
55
- height: auto;
56
- border-radius: 0.375rem;
57
- }
58
- .ProseMirror blockquote {
59
- border-left: 3px solid #3b82f6;
60
- padding-left: 1rem;
61
- margin: 1rem 0;
62
- color: #4b5563;
63
- }
64
- .ProseMirror pre {
65
- background: #1e293b;
66
- color: #e2e8f0;
67
- padding: 1rem;
68
- border-radius: 0.5rem;
69
- overflow-x: auto;
70
- margin: 0.75rem 0;
71
- }
72
- .ProseMirror code {
73
- background: #f1f5f9;
74
- padding: 0.125rem 0.375rem;
75
- border-radius: 0.25rem;
76
- font-size: 0.875em;
77
- }
78
- .ProseMirror pre code {
79
- background: none;
80
- padding: 0;
81
- border-radius: 0;
82
- font-size: inherit;
83
- }
84
- .ProseMirror hr {
85
- border: none;
86
- border-top: 2px solid #e5e7eb;
87
- margin: 1.5rem 0;
88
- }
89
- .ProseMirror p.is-editor-empty:first-child::before {
90
- content: attr(data-placeholder);
91
- float: left;
92
- color: #9ca3af;
93
- pointer-events: none;
94
- height: 0;
95
- }
96
- .ProseMirror .selectedCell {
97
- background-color: #dbeafe;
98
- }
21
+ const editorStyles = `
22
+ .ProseMirror {
23
+ min-height: 300px;
24
+ outline: none;
25
+ padding: 1rem;
26
+ }
27
+ .ProseMirror h1 { font-size: 2em; font-weight: 700; margin: 0.67em 0; }
28
+ .ProseMirror h2 { font-size: 1.5em; font-weight: 700; margin: 0.75em 0; }
29
+ .ProseMirror h3 { font-size: 1.17em; font-weight: 700; margin: 0.83em 0; }
30
+ .ProseMirror h4 { font-size: 1em; font-weight: 700; margin: 1em 0; }
31
+ .ProseMirror h5 { font-size: 0.83em; font-weight: 700; margin: 1.17em 0; }
32
+ .ProseMirror h6 { font-size: 0.67em; font-weight: 700; margin: 1.33em 0; }
33
+ .ProseMirror ul { list-style: disc; padding-left: 1.5rem; margin: 0.5em 0; }
34
+ .ProseMirror ol { list-style: decimal; padding-left: 1.5rem; margin: 0.5em 0; }
35
+ .ProseMirror li { margin: 0.25em 0; }
36
+ .ProseMirror p { margin: 0.5em 0; }
37
+ .ProseMirror table {
38
+ border-collapse: collapse;
39
+ width: 100%;
40
+ margin: 1rem 0;
41
+ }
42
+ .ProseMirror th,
43
+ .ProseMirror td {
44
+ border: 1px solid #d1d5db;
45
+ padding: 0.5rem;
46
+ text-align: left;
47
+ min-width: 80px;
48
+ }
49
+ .ProseMirror th {
50
+ background-color: #f3f4f6;
51
+ font-weight: 600;
52
+ }
53
+ .ProseMirror img {
54
+ max-width: 100%;
55
+ height: auto;
56
+ border-radius: 0.375rem;
57
+ }
58
+ .ProseMirror blockquote {
59
+ border-left: 3px solid #3b82f6;
60
+ padding-left: 1rem;
61
+ margin: 1rem 0;
62
+ color: #4b5563;
63
+ }
64
+ .ProseMirror pre {
65
+ background: #1e293b;
66
+ color: #e2e8f0;
67
+ padding: 1rem;
68
+ border-radius: 0.5rem;
69
+ overflow-x: auto;
70
+ margin: 0.75rem 0;
71
+ }
72
+ .ProseMirror code {
73
+ background: #f1f5f9;
74
+ padding: 0.125rem 0.375rem;
75
+ border-radius: 0.25rem;
76
+ font-size: 0.875em;
77
+ }
78
+ .ProseMirror pre code {
79
+ background: none;
80
+ padding: 0;
81
+ border-radius: 0;
82
+ font-size: inherit;
83
+ }
84
+ .ProseMirror hr {
85
+ border: none;
86
+ border-top: 2px solid #e5e7eb;
87
+ margin: 1.5rem 0;
88
+ }
89
+ .ProseMirror p.is-editor-empty:first-child::before {
90
+ content: attr(data-placeholder);
91
+ float: left;
92
+ color: #9ca3af;
93
+ pointer-events: none;
94
+ height: 0;
95
+ }
96
+ .ProseMirror .selectedCell {
97
+ background-color: #dbeafe;
98
+ }
99
99
  `;
100
100
  function ToolbarButton({ onClick, isActive = false, disabled = false, title, children, }) {
101
101
  return (_jsx("button", { type: "button", onClick: onClick, disabled: disabled, title: title, className: `p-1.5 rounded transition-colors ${isActive
@@ -12,6 +12,6 @@ export function Dashboard({ onNavigate }) {
12
12
  if (loading) {
13
13
  return (_jsx("div", { className: "p-3 pr-6 sm:p-4 sm:pr-8 flex items-center justify-center h-64", children: _jsx(Loader2, { className: "w-6 h-6 animate-spin text-blue-600" }) }));
14
14
  }
15
- return (_jsxs("div", { className: "p-3 pr-6 sm:p-4 sm:pr-8", children: [error && (_jsxs("div", { className: "mb-4 flex items-center gap-3 rounded-lg border border-red-200 bg-red-50 p-3", children: [_jsx(AlertTriangle, { className: "w-5 h-5 text-red-600 shrink-0" }), _jsx("span", { className: "text-sm text-red-800 flex-1", children: error }), _jsx("button", { onClick: refetch, className: "px-3 py-1 text-sm text-red-700 border border-red-300 rounded-lg hover:bg-red-100 transition-colors", children: "Retry" })] })), _jsxs("div", { className: "mb-4 sm:mb-6", children: [_jsx("h1", { className: "text-xl sm:text-2xl font-semibold text-gray-900 mb-1", children: "Dashboard" }), _jsx("p", { className: "text-sm text-gray-600", children: "Welcome back! Here's what's happening." })] }), _jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-4 gap-3 sm:gap-4 mb-4 sm:mb-6", children: [_jsx("div", { className: "bg-white rounded-lg border border-gray-200 p-3 sm:p-4", children: _jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { children: [_jsx("p", { className: "text-xs text-gray-600 mb-1", children: "Total Posts" }), _jsx("p", { className: "text-xl sm:text-2xl font-semibold text-gray-900", children: totalPosts }), _jsx("p", { className: "text-xs text-gray-400 mt-1", children: "\u2014" })] }), _jsx("div", { className: "w-8 h-8 sm:w-10 sm:h-10 bg-blue-100 rounded-lg flex items-center justify-center", children: _jsx(FileText, { className: "w-4 h-4 sm:w-5 sm:h-5 text-blue-600" }) })] }) }), _jsx("div", { className: "bg-white rounded-lg border border-gray-200 p-3 sm:p-4", children: _jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { children: [_jsx("p", { className: "text-xs text-gray-600 mb-1", children: "Total Pages" }), _jsx("p", { className: "text-xl sm:text-2xl font-semibold text-gray-900", children: "0" }), _jsx("p", { className: "text-xs text-gray-400 mt-1", children: "\u2014" })] }), _jsx("div", { className: "w-8 h-8 sm:w-10 sm:h-10 bg-purple-100 rounded-lg flex items-center justify-center", children: _jsx(Layout, { className: "w-4 h-4 sm:w-5 sm:h-5 text-purple-600" }) })] }) }), _jsx("div", { className: "bg-white rounded-lg border border-gray-200 p-3 sm:p-4", children: _jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { children: [_jsx("p", { className: "text-xs text-gray-600 mb-1", children: "Media Files" }), _jsx("p", { className: "text-xl sm:text-2xl font-semibold text-gray-900", children: totalMedia.toLocaleString() }), _jsx("p", { className: "text-xs text-gray-400 mt-1", children: "\u2014" })] }), _jsx("div", { className: "w-8 h-8 sm:w-10 sm:h-10 bg-green-100 rounded-lg flex items-center justify-center", children: _jsx(Image, { className: "w-4 h-4 sm:w-5 sm:h-5 text-green-600" }) })] }) }), _jsx("div", { className: "bg-white rounded-lg border border-gray-200 p-3 sm:p-4", children: _jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { children: [_jsx("p", { className: "text-xs text-gray-600 mb-1", children: "Total Users" }), _jsx("p", { className: "text-xl sm:text-2xl font-semibold text-gray-900", children: totalUsers }), _jsx("p", { className: "text-xs text-gray-400 mt-1", children: "\u2014" })] }), _jsx("div", { className: "w-8 h-8 sm:w-10 sm:h-10 bg-amber-100 rounded-lg flex items-center justify-center", children: _jsx(Users, { className: "w-4 h-4 sm:w-5 sm:h-5 text-amber-600" }) })] }) })] }), _jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-12 gap-3 sm:gap-4", children: [_jsxs("div", { className: "lg:col-span-8 bg-white rounded-lg border border-gray-200", children: [_jsx("div", { className: "p-3 sm:p-4 border-b border-gray-200", children: _jsx("h2", { className: "text-sm sm:text-base font-semibold text-gray-900", children: "Recent Posts" }) }), _jsx("div", { className: "divide-y divide-gray-200", children: recentPosts.length === 0 ? (_jsxs("div", { className: "p-8 text-center", children: [_jsx("p", { className: "text-sm text-gray-500 mb-2", children: "No posts yet" }), _jsx("button", { onClick: () => nav('/posts/new'), className: "px-4 py-2 text-sm bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors", children: "Create your first post" })] })) : recentPosts.map((post) => (_jsx("div", { className: "p-3 sm:p-4 hover:bg-gray-50 transition-colors", children: _jsxs("div", { className: "flex items-start justify-between gap-3", children: [_jsxs("div", { className: "flex-1 min-w-0", children: [_jsx("h3", { className: "text-sm font-medium text-gray-900 mb-1 truncate", children: post.title }), _jsxs("div", { className: "flex flex-wrap items-center gap-2 sm:gap-3 text-xs text-gray-600", children: [_jsxs("span", { className: "flex items-center gap-1", children: [_jsx(User, { className: "w-3 h-3" }), _jsx("span", { className: "hidden sm:inline", children: post.author })] }), _jsxs("span", { className: "flex items-center gap-1", children: [_jsx(Calendar, { className: "w-3 h-3" }), post.date] }), _jsx("span", { className: `px-2 py-0.5 rounded-full text-xs font-medium ${post.status === 'Published' ? 'bg-green-100 text-green-800' : 'bg-gray-100 text-gray-800'}`, children: post.status })] })] }), _jsx("button", { onClick: () => nav(`/posts/${post.id}`), className: "text-xs sm:text-sm text-blue-600 hover:text-blue-700 whitespace-nowrap", children: "Edit" })] }) }, post.id))) })] }), _jsxs("div", { className: "lg:col-span-4 bg-white rounded-lg border border-gray-200", children: [_jsx("div", { className: "p-3 sm:p-4 border-b border-gray-200", children: _jsx("h2", { className: "text-sm sm:text-base font-semibold text-gray-900", children: "Quick Actions" }) }), _jsxs("div", { className: "p-3 sm:p-4 space-y-2", children: [_jsxs("button", { onClick: () => nav('/posts/new'), className: "flex items-center gap-3 p-2.5 sm:p-3 rounded-lg hover:bg-gray-50 transition-colors group w-full text-left", children: [_jsx("div", { className: "w-8 h-8 bg-blue-100 rounded-lg flex items-center justify-center group-hover:bg-blue-200 transition-colors", children: _jsx(FileText, { className: "w-4 h-4 text-blue-600" }) }), _jsx("span", { className: "text-sm font-medium text-gray-900", children: "New Post" })] }), _jsxs("button", { onClick: () => nav('/pages/new'), className: "flex items-center gap-3 p-2.5 sm:p-3 rounded-lg hover:bg-gray-50 transition-colors group w-full text-left", children: [_jsx("div", { className: "w-8 h-8 bg-purple-100 rounded-lg flex items-center justify-center group-hover:bg-purple-200 transition-colors", children: _jsx(Layout, { className: "w-4 h-4 text-purple-600" }) }), _jsx("span", { className: "text-sm font-medium text-gray-900", children: "New Page" })] }), _jsxs("button", { onClick: () => nav('/media'), className: "flex items-center gap-3 p-2.5 sm:p-3 rounded-lg hover:bg-gray-50 transition-colors group w-full text-left", children: [_jsx("div", { className: "w-8 h-8 bg-green-100 rounded-lg flex items-center justify-center group-hover:bg-green-200 transition-colors", children: _jsx(Image, { className: "w-4 h-4 text-green-600" }) }), _jsx("span", { className: "text-sm font-medium text-gray-900", children: "Upload Media" })] }), _jsxs("button", { onClick: () => nav('/users'), className: "flex items-center gap-3 p-2.5 sm:p-3 rounded-lg hover:bg-gray-50 transition-colors group w-full text-left", children: [_jsx("div", { className: "w-8 h-8 bg-amber-100 rounded-lg flex items-center justify-center group-hover:bg-amber-200 transition-colors", children: _jsx(Users, { className: "w-4 h-4 text-amber-600" }) }), _jsx("span", { className: "text-sm font-medium text-gray-900", children: "Manage Users" })] })] })] })] })] }));
15
+ return (_jsxs("div", { className: "p-3 pr-6 sm:p-4 sm:pr-8", children: [error && (_jsxs("div", { className: "mb-4 flex items-center gap-3 rounded-lg border border-amber-200 bg-amber-50 p-3", children: [_jsx(AlertTriangle, { className: "w-5 h-5 text-amber-600 shrink-0" }), _jsx("span", { className: "text-sm text-amber-800 flex-1", children: "Some dashboard data may be unavailable. This is normal if your database hasn't been set up yet." }), _jsx("button", { onClick: refetch, className: "px-3 py-1 text-sm text-amber-700 border border-amber-300 rounded-lg hover:bg-amber-100 transition-colors", children: "Retry" })] })), _jsxs("div", { className: "mb-4 sm:mb-6", children: [_jsx("h1", { className: "text-xl sm:text-2xl font-semibold text-gray-900 mb-1", children: "Dashboard" }), _jsx("p", { className: "text-sm text-gray-600", children: "Welcome back! Here's what's happening." })] }), _jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-4 gap-3 sm:gap-4 mb-4 sm:mb-6", children: [_jsx("div", { className: "bg-white rounded-lg border border-gray-200 p-3 sm:p-4", children: _jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { children: [_jsx("p", { className: "text-xs text-gray-600 mb-1", children: "Total Posts" }), _jsx("p", { className: "text-xl sm:text-2xl font-semibold text-gray-900", children: totalPosts }), _jsx("p", { className: "text-xs text-gray-400 mt-1", children: "\u2014" })] }), _jsx("div", { className: "w-8 h-8 sm:w-10 sm:h-10 bg-blue-100 rounded-lg flex items-center justify-center", children: _jsx(FileText, { className: "w-4 h-4 sm:w-5 sm:h-5 text-blue-600" }) })] }) }), _jsx("div", { className: "bg-white rounded-lg border border-gray-200 p-3 sm:p-4", children: _jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { children: [_jsx("p", { className: "text-xs text-gray-600 mb-1", children: "Total Pages" }), _jsx("p", { className: "text-xl sm:text-2xl font-semibold text-gray-900", children: "0" }), _jsx("p", { className: "text-xs text-gray-400 mt-1", children: "\u2014" })] }), _jsx("div", { className: "w-8 h-8 sm:w-10 sm:h-10 bg-purple-100 rounded-lg flex items-center justify-center", children: _jsx(Layout, { className: "w-4 h-4 sm:w-5 sm:h-5 text-purple-600" }) })] }) }), _jsx("div", { className: "bg-white rounded-lg border border-gray-200 p-3 sm:p-4", children: _jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { children: [_jsx("p", { className: "text-xs text-gray-600 mb-1", children: "Media Files" }), _jsx("p", { className: "text-xl sm:text-2xl font-semibold text-gray-900", children: totalMedia.toLocaleString() }), _jsx("p", { className: "text-xs text-gray-400 mt-1", children: "\u2014" })] }), _jsx("div", { className: "w-8 h-8 sm:w-10 sm:h-10 bg-green-100 rounded-lg flex items-center justify-center", children: _jsx(Image, { className: "w-4 h-4 sm:w-5 sm:h-5 text-green-600" }) })] }) }), _jsx("div", { className: "bg-white rounded-lg border border-gray-200 p-3 sm:p-4", children: _jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { children: [_jsx("p", { className: "text-xs text-gray-600 mb-1", children: "Total Users" }), _jsx("p", { className: "text-xl sm:text-2xl font-semibold text-gray-900", children: totalUsers }), _jsx("p", { className: "text-xs text-gray-400 mt-1", children: "\u2014" })] }), _jsx("div", { className: "w-8 h-8 sm:w-10 sm:h-10 bg-amber-100 rounded-lg flex items-center justify-center", children: _jsx(Users, { className: "w-4 h-4 sm:w-5 sm:h-5 text-amber-600" }) })] }) })] }), _jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-12 gap-3 sm:gap-4", children: [_jsxs("div", { className: "lg:col-span-8 bg-white rounded-lg border border-gray-200", children: [_jsx("div", { className: "p-3 sm:p-4 border-b border-gray-200", children: _jsx("h2", { className: "text-sm sm:text-base font-semibold text-gray-900", children: "Recent Posts" }) }), _jsx("div", { className: "divide-y divide-gray-200", children: recentPosts.length === 0 ? (_jsxs("div", { className: "p-8 text-center", children: [_jsx("p", { className: "text-sm text-gray-500 mb-2", children: "No posts yet" }), _jsx("button", { onClick: () => nav('/posts/new'), className: "px-4 py-2 text-sm bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors", children: "Create your first post" })] })) : recentPosts.map((post) => (_jsx("div", { className: "p-3 sm:p-4 hover:bg-gray-50 transition-colors", children: _jsxs("div", { className: "flex items-start justify-between gap-3", children: [_jsxs("div", { className: "flex-1 min-w-0", children: [_jsx("h3", { className: "text-sm font-medium text-gray-900 mb-1 truncate", children: post.title }), _jsxs("div", { className: "flex flex-wrap items-center gap-2 sm:gap-3 text-xs text-gray-600", children: [_jsxs("span", { className: "flex items-center gap-1", children: [_jsx(User, { className: "w-3 h-3" }), _jsx("span", { className: "hidden sm:inline", children: post.author })] }), _jsxs("span", { className: "flex items-center gap-1", children: [_jsx(Calendar, { className: "w-3 h-3" }), post.date] }), _jsx("span", { className: `px-2 py-0.5 rounded-full text-xs font-medium ${post.status === 'Published' ? 'bg-green-100 text-green-800' : 'bg-gray-100 text-gray-800'}`, children: post.status })] })] }), _jsx("button", { onClick: () => nav(`/posts/${post.id}`), className: "text-xs sm:text-sm text-blue-600 hover:text-blue-700 whitespace-nowrap", children: "Edit" })] }) }, post.id))) })] }), _jsxs("div", { className: "lg:col-span-4 bg-white rounded-lg border border-gray-200", children: [_jsx("div", { className: "p-3 sm:p-4 border-b border-gray-200", children: _jsx("h2", { className: "text-sm sm:text-base font-semibold text-gray-900", children: "Quick Actions" }) }), _jsxs("div", { className: "p-3 sm:p-4 space-y-2", children: [_jsxs("button", { onClick: () => nav('/posts/new'), className: "flex items-center gap-3 p-2.5 sm:p-3 rounded-lg hover:bg-gray-50 transition-colors group w-full text-left", children: [_jsx("div", { className: "w-8 h-8 bg-blue-100 rounded-lg flex items-center justify-center group-hover:bg-blue-200 transition-colors", children: _jsx(FileText, { className: "w-4 h-4 text-blue-600" }) }), _jsx("span", { className: "text-sm font-medium text-gray-900", children: "New Post" })] }), _jsxs("button", { onClick: () => nav('/pages/new'), className: "flex items-center gap-3 p-2.5 sm:p-3 rounded-lg hover:bg-gray-50 transition-colors group w-full text-left", children: [_jsx("div", { className: "w-8 h-8 bg-purple-100 rounded-lg flex items-center justify-center group-hover:bg-purple-200 transition-colors", children: _jsx(Layout, { className: "w-4 h-4 text-purple-600" }) }), _jsx("span", { className: "text-sm font-medium text-gray-900", children: "New Page" })] }), _jsxs("button", { onClick: () => nav('/media'), className: "flex items-center gap-3 p-2.5 sm:p-3 rounded-lg hover:bg-gray-50 transition-colors group w-full text-left", children: [_jsx("div", { className: "w-8 h-8 bg-green-100 rounded-lg flex items-center justify-center group-hover:bg-green-200 transition-colors", children: _jsx(Image, { className: "w-4 h-4 text-green-600" }) }), _jsx("span", { className: "text-sm font-medium text-gray-900", children: "Upload Media" })] }), _jsxs("button", { onClick: () => nav('/users'), className: "flex items-center gap-3 p-2.5 sm:p-3 rounded-lg hover:bg-gray-50 transition-colors group w-full text-left", children: [_jsx("div", { className: "w-8 h-8 bg-amber-100 rounded-lg flex items-center justify-center group-hover:bg-amber-200 transition-colors", children: _jsx(Users, { className: "w-4 h-4 text-amber-600" }) }), _jsx("span", { className: "text-sm font-medium text-gray-900", children: "Manage Users" })] })] })] })] })] }));
16
16
  }
17
17
  //# sourceMappingURL=Dashboard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../src/views/Dashboard.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACtG,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAalD,MAAM,UAAU,SAAS,CAAC,EAAE,UAAU,EAAkB;IACtD,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC;IACjD,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,UAAU,CAAiB,QAAQ,CAAC,CAAC;IAE/E,MAAM,UAAU,GAAG,IAAI,EAAE,cAAc,IAAI,CAAC,CAAC;IAC7C,MAAM,UAAU,GAAG,IAAI,EAAE,UAAU,IAAI,CAAC,CAAC;IACzC,MAAM,UAAU,GAAG,IAAI,EAAE,UAAU,IAAI,CAAC,CAAC;IACzC,MAAM,WAAW,GAAG,IAAI,EAAE,eAAe,IAAI,EAAE,CAAC;IAEhD,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,CACL,cAAK,SAAS,EAAC,+DAA+D,YAC5E,KAAC,OAAO,IAAC,SAAS,EAAC,oCAAoC,GAAG,GACtD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,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAC,2GAA2G,aACzJ,cAAK,SAAS,EAAC,6GAA6G,YAC1H,KAAC,KAAK,IAAC,SAAS,EAAC,wBAAwB,GAAG,GACxC,EACN,eAAM,SAAS,EAAC,mCAAmC,6BAAoB,IAChE,EACT,kBAAQ,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAC,2GAA2G,aACzJ,cAAK,SAAS,EAAC,6GAA6G,YAC1H,KAAC,KAAK,IAAC,SAAS,EAAC,wBAAwB,GAAG,GACxC,EACN,eAAM,SAAS,EAAC,mCAAmC,6BAAoB,IAChE,IACL,IACF,IACF,IACF,CACP,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actuate-media/cms-admin",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/actuate-media/actuatecms.git",
@@ -55,7 +55,7 @@
55
55
  "react-dom": "^19.2.0",
56
56
  "sonner": "^2.0.7",
57
57
  "tailwind-merge": "^3.5.0",
58
- "@actuate-media/cms-core": "0.2.2"
58
+ "@actuate-media/cms-core": "0.2.3"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/react": "^19.0.0",
@@ -1,6 +1,6 @@
1
- /*
2
- * Actuate CMS admin styles.
3
- * Do NOT re-import Tailwind — consumers already load it in their app.
4
- * This file only provides the CMS theme variables scoped to .actuate-admin.
5
- */
6
- @import "./theme.css";
1
+ /*
2
+ * Actuate CMS admin styles.
3
+ * Do NOT re-import Tailwind — consumers already load it in their app.
4
+ * This file only provides the CMS theme variables scoped to .actuate-admin.
5
+ */
6
+ @import "./theme.css";
@@ -1,181 +1,181 @@
1
- @custom-variant dark (&:is(.dark *));
2
-
3
- .actuate-admin {
4
- --font-size: 16px;
5
- --background: #ffffff;
6
- --foreground: oklch(0.145 0 0);
7
- --card: #ffffff;
8
- --card-foreground: oklch(0.145 0 0);
9
- --popover: oklch(1 0 0);
10
- --popover-foreground: oklch(0.145 0 0);
11
- --primary: #030213;
12
- --primary-foreground: oklch(1 0 0);
13
- --secondary: oklch(0.95 0.0058 264.53);
14
- --secondary-foreground: #030213;
15
- --muted: #ececf0;
16
- --muted-foreground: #717182;
17
- --accent: #e9ebef;
18
- --accent-foreground: #030213;
19
- --destructive: #d4183d;
20
- --destructive-foreground: #ffffff;
21
- --border: rgba(0, 0, 0, 0.1);
22
- --input: transparent;
23
- --input-background: #f3f3f5;
24
- --switch-background: #cbced4;
25
- --font-weight-medium: 500;
26
- --font-weight-normal: 400;
27
- --ring: oklch(0.708 0 0);
28
- --chart-1: oklch(0.646 0.222 41.116);
29
- --chart-2: oklch(0.6 0.118 184.704);
30
- --chart-3: oklch(0.398 0.07 227.392);
31
- --chart-4: oklch(0.828 0.189 84.429);
32
- --chart-5: oklch(0.769 0.188 70.08);
33
- --radius: 0.625rem;
34
- --sidebar: oklch(0.985 0 0);
35
- --sidebar-foreground: oklch(0.145 0 0);
36
- --sidebar-primary: #030213;
37
- --sidebar-primary-foreground: oklch(0.985 0 0);
38
- --sidebar-accent: oklch(0.97 0 0);
39
- --sidebar-accent-foreground: oklch(0.205 0 0);
40
- --sidebar-border: oklch(0.922 0 0);
41
- --sidebar-ring: oklch(0.708 0 0);
42
- }
43
-
44
- .dark .actuate-admin,
45
- .actuate-admin.dark {
46
- --background: oklch(0.145 0 0);
47
- --foreground: oklch(0.985 0 0);
48
- --card: oklch(0.185 0 0);
49
- --card-foreground: oklch(0.985 0 0);
50
- --popover: oklch(0.185 0 0);
51
- --popover-foreground: oklch(0.985 0 0);
52
- --primary: oklch(0.985 0 0);
53
- --primary-foreground: oklch(0.205 0 0);
54
- --secondary: oklch(0.269 0 0);
55
- --secondary-foreground: oklch(0.985 0 0);
56
- --muted: oklch(0.269 0 0);
57
- --muted-foreground: oklch(0.708 0 0);
58
- --accent: oklch(0.269 0 0);
59
- --accent-foreground: oklch(0.985 0 0);
60
- --destructive: oklch(0.396 0.141 25.723);
61
- --destructive-foreground: oklch(0.637 0.237 25.331);
62
- --border: oklch(0.269 0 0);
63
- --input: oklch(0.269 0 0);
64
- --input-background: oklch(0.205 0 0);
65
- --switch-background: oklch(0.35 0 0);
66
- --ring: oklch(0.439 0 0);
67
- --font-weight-medium: 500;
68
- --font-weight-normal: 400;
69
- --chart-1: oklch(0.488 0.243 264.376);
70
- --chart-2: oklch(0.696 0.17 162.48);
71
- --chart-3: oklch(0.769 0.188 70.08);
72
- --chart-4: oklch(0.627 0.265 303.9);
73
- --chart-5: oklch(0.645 0.246 16.439);
74
- --sidebar: oklch(0.205 0 0);
75
- --sidebar-foreground: oklch(0.985 0 0);
76
- --sidebar-primary: oklch(0.488 0.243 264.376);
77
- --sidebar-primary-foreground: oklch(0.985 0 0);
78
- --sidebar-accent: oklch(0.269 0 0);
79
- --sidebar-accent-foreground: oklch(0.985 0 0);
80
- --sidebar-border: oklch(0.269 0 0);
81
- --sidebar-ring: oklch(0.439 0 0);
82
- }
83
-
84
- @theme inline {
85
- --color-background: var(--background);
86
- --color-foreground: var(--foreground);
87
- --color-card: var(--card);
88
- --color-card-foreground: var(--card-foreground);
89
- --color-popover: var(--popover);
90
- --color-popover-foreground: var(--popover-foreground);
91
- --color-primary: var(--primary);
92
- --color-primary-foreground: var(--primary-foreground);
93
- --color-secondary: var(--secondary);
94
- --color-secondary-foreground: var(--secondary-foreground);
95
- --color-muted: var(--muted);
96
- --color-muted-foreground: var(--muted-foreground);
97
- --color-accent: var(--accent);
98
- --color-accent-foreground: var(--accent-foreground);
99
- --color-destructive: var(--destructive);
100
- --color-destructive-foreground: var(--destructive-foreground);
101
- --color-border: var(--border);
102
- --color-input: var(--input);
103
- --color-input-background: var(--input-background);
104
- --color-switch-background: var(--switch-background);
105
- --color-ring: var(--ring);
106
- --color-chart-1: var(--chart-1);
107
- --color-chart-2: var(--chart-2);
108
- --color-chart-3: var(--chart-3);
109
- --color-chart-4: var(--chart-4);
110
- --color-chart-5: var(--chart-5);
111
- --radius-sm: calc(var(--radius) - 4px);
112
- --radius-md: calc(var(--radius) - 2px);
113
- --radius-lg: var(--radius);
114
- --radius-xl: calc(var(--radius) + 4px);
115
- --color-sidebar: var(--sidebar);
116
- --color-sidebar-foreground: var(--sidebar-foreground);
117
- --color-sidebar-primary: var(--sidebar-primary);
118
- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
119
- --color-sidebar-accent: var(--sidebar-accent);
120
- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
121
- --color-sidebar-border: var(--sidebar-border);
122
- --color-sidebar-ring: var(--sidebar-ring);
123
- }
124
-
125
- @layer base {
126
- .actuate-admin * {
127
- @apply border-border outline-ring/50;
128
- }
129
-
130
- .actuate-admin {
131
- @apply bg-background text-foreground;
132
- font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
133
- font-size: var(--font-size);
134
- line-height: 1.5;
135
- isolation: isolate;
136
- -webkit-font-smoothing: antialiased;
137
- -moz-osx-font-smoothing: grayscale;
138
- }
139
-
140
- .actuate-admin h1 {
141
- font-size: var(--text-2xl);
142
- font-weight: var(--font-weight-medium);
143
- line-height: 1.5;
144
- }
145
-
146
- .actuate-admin h2 {
147
- font-size: var(--text-xl);
148
- font-weight: var(--font-weight-medium);
149
- line-height: 1.5;
150
- }
151
-
152
- .actuate-admin h3 {
153
- font-size: var(--text-lg);
154
- font-weight: var(--font-weight-medium);
155
- line-height: 1.5;
156
- }
157
-
158
- .actuate-admin h4 {
159
- font-size: var(--text-base);
160
- font-weight: var(--font-weight-medium);
161
- line-height: 1.5;
162
- }
163
-
164
- .actuate-admin label {
165
- font-size: var(--text-base);
166
- font-weight: var(--font-weight-medium);
167
- line-height: 1.5;
168
- }
169
-
170
- .actuate-admin button {
171
- font-size: var(--text-base);
172
- font-weight: var(--font-weight-medium);
173
- line-height: 1.5;
174
- }
175
-
176
- .actuate-admin input {
177
- font-size: var(--text-base);
178
- font-weight: var(--font-weight-normal);
179
- line-height: 1.5;
180
- }
181
- }
1
+ @custom-variant dark (&:is(.dark *));
2
+
3
+ .actuate-admin {
4
+ --font-size: 16px;
5
+ --background: #ffffff;
6
+ --foreground: oklch(0.145 0 0);
7
+ --card: #ffffff;
8
+ --card-foreground: oklch(0.145 0 0);
9
+ --popover: oklch(1 0 0);
10
+ --popover-foreground: oklch(0.145 0 0);
11
+ --primary: #030213;
12
+ --primary-foreground: oklch(1 0 0);
13
+ --secondary: oklch(0.95 0.0058 264.53);
14
+ --secondary-foreground: #030213;
15
+ --muted: #ececf0;
16
+ --muted-foreground: #717182;
17
+ --accent: #e9ebef;
18
+ --accent-foreground: #030213;
19
+ --destructive: #d4183d;
20
+ --destructive-foreground: #ffffff;
21
+ --border: rgba(0, 0, 0, 0.1);
22
+ --input: transparent;
23
+ --input-background: #f3f3f5;
24
+ --switch-background: #cbced4;
25
+ --font-weight-medium: 500;
26
+ --font-weight-normal: 400;
27
+ --ring: oklch(0.708 0 0);
28
+ --chart-1: oklch(0.646 0.222 41.116);
29
+ --chart-2: oklch(0.6 0.118 184.704);
30
+ --chart-3: oklch(0.398 0.07 227.392);
31
+ --chart-4: oklch(0.828 0.189 84.429);
32
+ --chart-5: oklch(0.769 0.188 70.08);
33
+ --radius: 0.625rem;
34
+ --sidebar: oklch(0.985 0 0);
35
+ --sidebar-foreground: oklch(0.145 0 0);
36
+ --sidebar-primary: #030213;
37
+ --sidebar-primary-foreground: oklch(0.985 0 0);
38
+ --sidebar-accent: oklch(0.97 0 0);
39
+ --sidebar-accent-foreground: oklch(0.205 0 0);
40
+ --sidebar-border: oklch(0.922 0 0);
41
+ --sidebar-ring: oklch(0.708 0 0);
42
+ }
43
+
44
+ .dark .actuate-admin,
45
+ .actuate-admin.dark {
46
+ --background: oklch(0.145 0 0);
47
+ --foreground: oklch(0.985 0 0);
48
+ --card: oklch(0.185 0 0);
49
+ --card-foreground: oklch(0.985 0 0);
50
+ --popover: oklch(0.185 0 0);
51
+ --popover-foreground: oklch(0.985 0 0);
52
+ --primary: oklch(0.985 0 0);
53
+ --primary-foreground: oklch(0.205 0 0);
54
+ --secondary: oklch(0.269 0 0);
55
+ --secondary-foreground: oklch(0.985 0 0);
56
+ --muted: oklch(0.269 0 0);
57
+ --muted-foreground: oklch(0.708 0 0);
58
+ --accent: oklch(0.269 0 0);
59
+ --accent-foreground: oklch(0.985 0 0);
60
+ --destructive: oklch(0.396 0.141 25.723);
61
+ --destructive-foreground: oklch(0.637 0.237 25.331);
62
+ --border: oklch(0.269 0 0);
63
+ --input: oklch(0.269 0 0);
64
+ --input-background: oklch(0.205 0 0);
65
+ --switch-background: oklch(0.35 0 0);
66
+ --ring: oklch(0.439 0 0);
67
+ --font-weight-medium: 500;
68
+ --font-weight-normal: 400;
69
+ --chart-1: oklch(0.488 0.243 264.376);
70
+ --chart-2: oklch(0.696 0.17 162.48);
71
+ --chart-3: oklch(0.769 0.188 70.08);
72
+ --chart-4: oklch(0.627 0.265 303.9);
73
+ --chart-5: oklch(0.645 0.246 16.439);
74
+ --sidebar: oklch(0.205 0 0);
75
+ --sidebar-foreground: oklch(0.985 0 0);
76
+ --sidebar-primary: oklch(0.488 0.243 264.376);
77
+ --sidebar-primary-foreground: oklch(0.985 0 0);
78
+ --sidebar-accent: oklch(0.269 0 0);
79
+ --sidebar-accent-foreground: oklch(0.985 0 0);
80
+ --sidebar-border: oklch(0.269 0 0);
81
+ --sidebar-ring: oklch(0.439 0 0);
82
+ }
83
+
84
+ @theme inline {
85
+ --color-background: var(--background);
86
+ --color-foreground: var(--foreground);
87
+ --color-card: var(--card);
88
+ --color-card-foreground: var(--card-foreground);
89
+ --color-popover: var(--popover);
90
+ --color-popover-foreground: var(--popover-foreground);
91
+ --color-primary: var(--primary);
92
+ --color-primary-foreground: var(--primary-foreground);
93
+ --color-secondary: var(--secondary);
94
+ --color-secondary-foreground: var(--secondary-foreground);
95
+ --color-muted: var(--muted);
96
+ --color-muted-foreground: var(--muted-foreground);
97
+ --color-accent: var(--accent);
98
+ --color-accent-foreground: var(--accent-foreground);
99
+ --color-destructive: var(--destructive);
100
+ --color-destructive-foreground: var(--destructive-foreground);
101
+ --color-border: var(--border);
102
+ --color-input: var(--input);
103
+ --color-input-background: var(--input-background);
104
+ --color-switch-background: var(--switch-background);
105
+ --color-ring: var(--ring);
106
+ --color-chart-1: var(--chart-1);
107
+ --color-chart-2: var(--chart-2);
108
+ --color-chart-3: var(--chart-3);
109
+ --color-chart-4: var(--chart-4);
110
+ --color-chart-5: var(--chart-5);
111
+ --radius-sm: calc(var(--radius) - 4px);
112
+ --radius-md: calc(var(--radius) - 2px);
113
+ --radius-lg: var(--radius);
114
+ --radius-xl: calc(var(--radius) + 4px);
115
+ --color-sidebar: var(--sidebar);
116
+ --color-sidebar-foreground: var(--sidebar-foreground);
117
+ --color-sidebar-primary: var(--sidebar-primary);
118
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
119
+ --color-sidebar-accent: var(--sidebar-accent);
120
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
121
+ --color-sidebar-border: var(--sidebar-border);
122
+ --color-sidebar-ring: var(--sidebar-ring);
123
+ }
124
+
125
+ @layer base {
126
+ .actuate-admin * {
127
+ @apply border-border outline-ring/50;
128
+ }
129
+
130
+ .actuate-admin {
131
+ @apply bg-background text-foreground;
132
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
133
+ font-size: var(--font-size);
134
+ line-height: 1.5;
135
+ isolation: isolate;
136
+ -webkit-font-smoothing: antialiased;
137
+ -moz-osx-font-smoothing: grayscale;
138
+ }
139
+
140
+ .actuate-admin h1 {
141
+ font-size: var(--text-2xl);
142
+ font-weight: var(--font-weight-medium);
143
+ line-height: 1.5;
144
+ }
145
+
146
+ .actuate-admin h2 {
147
+ font-size: var(--text-xl);
148
+ font-weight: var(--font-weight-medium);
149
+ line-height: 1.5;
150
+ }
151
+
152
+ .actuate-admin h3 {
153
+ font-size: var(--text-lg);
154
+ font-weight: var(--font-weight-medium);
155
+ line-height: 1.5;
156
+ }
157
+
158
+ .actuate-admin h4 {
159
+ font-size: var(--text-base);
160
+ font-weight: var(--font-weight-medium);
161
+ line-height: 1.5;
162
+ }
163
+
164
+ .actuate-admin label {
165
+ font-size: var(--text-base);
166
+ font-weight: var(--font-weight-medium);
167
+ line-height: 1.5;
168
+ }
169
+
170
+ .actuate-admin button {
171
+ font-size: var(--text-base);
172
+ font-weight: var(--font-weight-medium);
173
+ line-height: 1.5;
174
+ }
175
+
176
+ .actuate-admin input {
177
+ font-size: var(--text-base);
178
+ font-weight: var(--font-weight-normal);
179
+ line-height: 1.5;
180
+ }
181
+ }