@rovela-ai/sdk 0.1.36 → 0.1.37
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTable.d.ts","sourceRoot":"","sources":["../../../src/admin/components/ProductTable.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"ProductTable.d.ts","sourceRoot":"","sources":["../../../src/admin/components/ProductTable.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AA+GjD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,EAC3B,aAAa,EACb,eAAe,EACf,aAAa,EACb,QAAa,EACb,cAAc,EACd,SAAc,GACf,EAAE,iBAAiB,2CA8NnB"}
|
|
@@ -7,7 +7,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
* Styled with Rovela admin theme - uses pure CSS for hover states.
|
|
8
8
|
*/
|
|
9
9
|
import { useState, useEffect, useCallback } from 'react';
|
|
10
|
-
import { ImageIcon } from 'lucide-react';
|
|
10
|
+
import { ImageIcon, Pencil, Trash2 } from 'lucide-react';
|
|
11
11
|
import { useAdminProducts } from '../hooks/useAdminProducts';
|
|
12
12
|
import { useStoreSettingsOptional } from '../../core/StoreSettingsProvider';
|
|
13
13
|
import { DeleteConfirmDialog } from './DeleteConfirmDialog';
|
|
@@ -29,7 +29,7 @@ function ProductRow({ product: p, onProductClick, onDeleteClick, formatCurrency
|
|
|
29
29
|
e.preventDefault();
|
|
30
30
|
onProductClick(p.id);
|
|
31
31
|
}
|
|
32
|
-
}, className: "admin-inventory-item-link", children: p.name })] }) }), _jsx("td", { className: "px-6 py-4", children: _jsx(StatusBadge, { status: p.status }) }), _jsx("td", { className: "px-6 py-4 text-sm font-medium", children: formatCurrency(p.price) }), _jsx("td", { className: "px-6 py-4 text-sm admin-text-muted", children: "\u2014" }), _jsx("td", { className: "px-6 py-4", children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("a", { href: `/admin/products/${p.id}`, className: "admin-
|
|
32
|
+
}, className: "admin-inventory-item-link", children: p.name })] }) }), _jsx("td", { className: "px-6 py-4", children: _jsx(StatusBadge, { status: p.status }) }), _jsx("td", { className: "px-6 py-4 text-sm font-medium", children: formatCurrency(p.price) }), _jsx("td", { className: "px-6 py-4 text-sm admin-text-muted", children: "\u2014" }), _jsx("td", { className: "px-6 py-4", children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("a", { href: `/admin/products/${p.id}`, className: "p-2 rounded-md hover:bg-[hsl(var(--admin-background-subtle))] text-[hsl(var(--admin-foreground-muted))] hover:text-[hsl(var(--admin-foreground))] transition-colors", children: _jsx(Pencil, { className: "h-4 w-4" }) }), _jsx("button", { type: "button", onClick: () => onDeleteClick(p.id, p.name), className: "p-2 rounded-md hover:bg-[hsl(var(--admin-destructive)/0.1)] text-[hsl(var(--admin-foreground-muted))] hover:text-[hsl(var(--admin-destructive))] transition-colors", children: _jsx(Trash2, { className: "h-4 w-4" }) })] }) })] }));
|
|
33
33
|
}
|
|
34
34
|
// =============================================================================
|
|
35
35
|
// Component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTable.js","sourceRoot":"","sources":["../../../src/admin/components/ProductTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"ProductTable.js","sourceRoot":"","sources":["../../../src/admin/components/ProductTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,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,EAAE,kBAAkB,GAC5B,IACE,CACP,CAAA;AACH,CAAC"}
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
--admin-background: 36 36% 95%; /* Warm Cream #F7F3ED - matches platform */
|
|
30
30
|
--admin-background-subtle: 36 20% 90%; /* Slightly darker - matches platform --secondary */
|
|
31
31
|
--admin-card: 0 0% 100%; /* Pure white cards */
|
|
32
|
-
--admin-sidebar:
|
|
33
|
-
--admin-sidebar-hover:
|
|
34
|
-
--admin-sidebar-border:
|
|
32
|
+
--admin-sidebar: 222 47% 11%; /* #0f172a - Slate 900 - Deep navy */
|
|
33
|
+
--admin-sidebar-hover: 222 47% 15%; /* #1e293b - Slate 800 - Visible hover */
|
|
34
|
+
--admin-sidebar-border: 215 25% 27%; /* #334155 - Slate 700 - Clear border */
|
|
35
35
|
|
|
36
36
|
/* Text Colors */
|
|
37
37
|
--admin-foreground: 220 20% 14%; /* Near-black text */
|
|
38
38
|
--admin-foreground-muted: 220 10% 46%; /* Secondary text #6B7280 */
|
|
39
39
|
--admin-foreground-subtle: 220 10% 64%; /* Tertiary/placeholder */
|
|
40
|
-
--admin-sidebar-foreground:
|
|
41
|
-
--admin-sidebar-foreground-muted:
|
|
40
|
+
--admin-sidebar-foreground: 210 40% 96%;/* #f1f5f9 - Slate 100 - Crisp white */
|
|
41
|
+
--admin-sidebar-foreground-muted: 215 20% 65%; /* #94a3b8 - Slate 400 - Readable muted */
|
|
42
42
|
|
|
43
43
|
/* Borders - Warm gray to match Rovela platform */
|
|
44
44
|
--admin-border: 36 20% 90%; /* Warm gray border (was cool gray 220) */
|
|
@@ -228,16 +228,16 @@
|
|
|
228
228
|
--admin-background: 200 10% 10%; /* Dark blue-gray */
|
|
229
229
|
--admin-background-subtle: 200 10% 14%; /* Slightly lighter */
|
|
230
230
|
--admin-card: 200 10% 14%; /* Card surfaces */
|
|
231
|
-
--admin-sidebar:
|
|
232
|
-
--admin-sidebar-hover:
|
|
233
|
-
--admin-sidebar-border:
|
|
231
|
+
--admin-sidebar: 224 71% 4%; /* #020617 - Slate 950 - Near black */
|
|
232
|
+
--admin-sidebar-hover: 222 47% 11%; /* #0f172a - Slate 900 - Visible hover */
|
|
233
|
+
--admin-sidebar-border: 217 33% 17%; /* #1e293b - Slate 800 - Clear border */
|
|
234
234
|
|
|
235
235
|
/* Text Colors - Inverted for dark mode */
|
|
236
236
|
--admin-foreground: 36 36% 95%; /* Cream text */
|
|
237
237
|
--admin-foreground-muted: 196 6% 60%; /* Muted text */
|
|
238
238
|
--admin-foreground-subtle: 196 6% 50%; /* Subtle text */
|
|
239
|
-
--admin-sidebar-foreground:
|
|
240
|
-
--admin-sidebar-foreground-muted:
|
|
239
|
+
--admin-sidebar-foreground: 210 40% 98%; /* #f8fafc - Slate 50 - Bright white */
|
|
240
|
+
--admin-sidebar-foreground-muted: 215 20% 65%; /* #94a3b8 - Slate 400 - Readable */
|
|
241
241
|
|
|
242
242
|
/* Primary - Brighter emerald for dark mode */
|
|
243
243
|
--admin-primary: 163 86% 45%; /* Brighter emerald */
|
|
@@ -299,16 +299,86 @@
|
|
|
299
299
|
--admin-background: 200 10% 10%;
|
|
300
300
|
--admin-background-subtle: 200 10% 14%;
|
|
301
301
|
--admin-card: 200 10% 14%;
|
|
302
|
-
--admin-sidebar:
|
|
303
|
-
--admin-sidebar-hover:
|
|
304
|
-
--admin-sidebar-border:
|
|
302
|
+
--admin-sidebar: 224 71% 4%; /* #020617 - Slate 950 - Near black */
|
|
303
|
+
--admin-sidebar-hover: 222 47% 11%; /* #0f172a - Slate 900 - Visible hover */
|
|
304
|
+
--admin-sidebar-border: 217 33% 17%; /* #1e293b - Slate 800 - Clear border */
|
|
305
305
|
|
|
306
306
|
/* Text Colors */
|
|
307
307
|
--admin-foreground: 36 36% 95%;
|
|
308
308
|
--admin-foreground-muted: 196 6% 60%;
|
|
309
309
|
--admin-foreground-subtle: 196 6% 50%;
|
|
310
|
-
--admin-sidebar-foreground:
|
|
311
|
-
--admin-sidebar-foreground-muted:
|
|
310
|
+
--admin-sidebar-foreground: 210 40% 98%; /* #f8fafc - Slate 50 - Bright white */
|
|
311
|
+
--admin-sidebar-foreground-muted: 215 20% 65%; /* #94a3b8 - Slate 400 - Readable */
|
|
312
|
+
|
|
313
|
+
/* Primary */
|
|
314
|
+
--admin-primary: 163 86% 45%;
|
|
315
|
+
--admin-primary-hover: 163 86% 50%;
|
|
316
|
+
--admin-primary-light: 163 86% 20%;
|
|
317
|
+
--admin-primary-foreground: 200 10% 10%;
|
|
318
|
+
|
|
319
|
+
/* Borders */
|
|
320
|
+
--admin-border: 200 10% 20%;
|
|
321
|
+
--admin-border-hover: 200 10% 25%;
|
|
322
|
+
--admin-border-focus: 163 86% 45%;
|
|
323
|
+
|
|
324
|
+
/* Status Colors */
|
|
325
|
+
--admin-success: 168 100% 40%;
|
|
326
|
+
--admin-success-light: 168 100% 15%;
|
|
327
|
+
--admin-success-dark: 168 100% 60%;
|
|
328
|
+
--admin-warning: 43 97% 50%;
|
|
329
|
+
--admin-warning-light: 43 97% 15%;
|
|
330
|
+
--admin-warning-dark: 43 97% 70%;
|
|
331
|
+
--admin-error: 0 100% 65%;
|
|
332
|
+
--admin-error-light: 0 100% 15%;
|
|
333
|
+
--admin-error-dark: 0 100% 75%;
|
|
334
|
+
--admin-info: 199 89% 55%;
|
|
335
|
+
--admin-info-light: 199 89% 15%;
|
|
336
|
+
--admin-info-dark: 199 89% 70%;
|
|
337
|
+
|
|
338
|
+
/* Shadows */
|
|
339
|
+
--admin-shadow-sm: 0 2px 4px rgb(0 0 0 / 0.3);
|
|
340
|
+
--admin-shadow-md: 0 4px 12px rgb(0 0 0 / 0.4);
|
|
341
|
+
--admin-shadow-lg: 0 8px 24px rgb(0 0 0 / 0.5);
|
|
342
|
+
--admin-shadow-xl: 0 16px 48px rgb(0 0 0 / 0.6);
|
|
343
|
+
|
|
344
|
+
/* Standard variable mappings */
|
|
345
|
+
--background: var(--admin-background);
|
|
346
|
+
--foreground: var(--admin-foreground);
|
|
347
|
+
--card: var(--admin-card);
|
|
348
|
+
--card-foreground: var(--admin-foreground);
|
|
349
|
+
--popover: var(--admin-card);
|
|
350
|
+
--popover-foreground: var(--admin-foreground);
|
|
351
|
+
--primary: var(--admin-primary);
|
|
352
|
+
--primary-foreground: var(--admin-primary-foreground);
|
|
353
|
+
--secondary: var(--admin-background-subtle);
|
|
354
|
+
--secondary-foreground: var(--admin-foreground);
|
|
355
|
+
--muted: var(--admin-background-subtle);
|
|
356
|
+
--muted-foreground: var(--admin-foreground-muted);
|
|
357
|
+
--accent: var(--admin-primary-light);
|
|
358
|
+
--accent-foreground: var(--admin-primary);
|
|
359
|
+
--border: var(--admin-border);
|
|
360
|
+
--input: var(--admin-border);
|
|
361
|
+
--ring: var(--admin-primary);
|
|
362
|
+
--destructive: var(--admin-error);
|
|
363
|
+
--destructive-foreground: 0 0% 100%;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/* Dark mode when .dark class is on ancestor (next-themes pattern) */
|
|
367
|
+
.dark .rovela-admin-theme {
|
|
368
|
+
/* Backgrounds - Dark blue-gray palette */
|
|
369
|
+
--admin-background: 200 10% 10%;
|
|
370
|
+
--admin-background-subtle: 200 10% 14%;
|
|
371
|
+
--admin-card: 200 10% 14%;
|
|
372
|
+
--admin-sidebar: 224 71% 4%; /* #020617 - Slate 950 - Near black */
|
|
373
|
+
--admin-sidebar-hover: 222 47% 11%; /* #0f172a - Slate 900 - Visible hover */
|
|
374
|
+
--admin-sidebar-border: 217 33% 17%; /* #1e293b - Slate 800 - Clear border */
|
|
375
|
+
|
|
376
|
+
/* Text Colors */
|
|
377
|
+
--admin-foreground: 36 36% 95%;
|
|
378
|
+
--admin-foreground-muted: 196 6% 60%;
|
|
379
|
+
--admin-foreground-subtle: 196 6% 50%;
|
|
380
|
+
--admin-sidebar-foreground: 210 40% 98%; /* #f8fafc - Slate 50 - Bright white */
|
|
381
|
+
--admin-sidebar-foreground-muted: 215 20% 65%; /* #94a3b8 - Slate 400 - Readable */
|
|
312
382
|
|
|
313
383
|
/* Primary */
|
|
314
384
|
--admin-primary: 163 86% 45%;
|
|
@@ -1056,12 +1126,12 @@
|
|
|
1056
1126
|
}
|
|
1057
1127
|
|
|
1058
1128
|
.rovela-admin-theme .admin-sidebar-item.active {
|
|
1059
|
-
background: hsl(var(--admin-primary) / 0.
|
|
1060
|
-
color: hsl(
|
|
1129
|
+
background: hsl(var(--admin-primary) / 0.2);
|
|
1130
|
+
color: hsl(163 86% 55%); /* Brighter emerald for visibility on dark bg */
|
|
1061
1131
|
}
|
|
1062
1132
|
|
|
1063
1133
|
.rovela-admin-theme .admin-sidebar-item.active .admin-sidebar-item-icon {
|
|
1064
|
-
color: hsl(
|
|
1134
|
+
color: hsl(163 86% 55%); /* Match brighter emerald */
|
|
1065
1135
|
}
|
|
1066
1136
|
|
|
1067
1137
|
.rovela-admin-theme .admin-sidebar-item-icon {
|
|
@@ -2100,7 +2170,7 @@
|
|
|
2100
2170
|
font-weight: var(--admin-font-medium);
|
|
2101
2171
|
color: hsl(var(--admin-sidebar-foreground-muted));
|
|
2102
2172
|
background: transparent;
|
|
2103
|
-
border: 1px solid hsl(
|
|
2173
|
+
border: 1px solid hsl(var(--admin-sidebar-border));
|
|
2104
2174
|
border-radius: var(--admin-radius-lg);
|
|
2105
2175
|
text-decoration: none;
|
|
2106
2176
|
transition: var(--admin-transition-colors);
|