@wopr-network/platform-ui-core 1.27.0 → 1.27.1
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/package.json +1 -1
- package/src/app/(dashboard)/billing/usage/hosted/page.tsx +1 -1
- package/src/app/globals.css +53 -53
- package/src/app/instances/new/create-instance-client.tsx +0 -1
- package/src/components/billing/crypto-checkout.tsx +1 -1
- package/src/components/landing/portfolio-chart.tsx +1 -1
- package/src/components/sidebar.tsx +5 -2
package/package.json
CHANGED
|
@@ -311,7 +311,7 @@ export default function HostedUsageDetailPage() {
|
|
|
311
311
|
</TableRow>
|
|
312
312
|
</TableHeader>
|
|
313
313
|
<TableBody>
|
|
314
|
-
{filteredEvents.map((event,
|
|
314
|
+
{filteredEvents.map((event, _index) => (
|
|
315
315
|
<tr
|
|
316
316
|
key={event.id}
|
|
317
317
|
className="border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted"
|
package/src/app/globals.css
CHANGED
|
@@ -261,114 +261,114 @@
|
|
|
261
261
|
|
|
262
262
|
/* ── Sonner toast — match platform theme ─────────────────────────── */
|
|
263
263
|
[data-sonner-toaster] {
|
|
264
|
-
font-family: var(--font-mono), ui-monospace, monospace
|
|
265
|
-
--width: 320px
|
|
266
|
-
position: fixed
|
|
267
|
-
bottom: 20px
|
|
268
|
-
right: 20px
|
|
269
|
-
left: auto
|
|
270
|
-
top: auto
|
|
271
|
-
z-index: 99999
|
|
272
|
-
transform: none
|
|
264
|
+
font-family: var(--font-mono), ui-monospace, monospace;
|
|
265
|
+
--width: 320px;
|
|
266
|
+
position: fixed;
|
|
267
|
+
bottom: 20px;
|
|
268
|
+
right: 20px;
|
|
269
|
+
left: auto;
|
|
270
|
+
top: auto;
|
|
271
|
+
z-index: 99999;
|
|
272
|
+
transform: none;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
[data-sonner-toast] {
|
|
276
|
-
background: var(--card)
|
|
277
|
-
border: 1px solid var(--border)
|
|
278
|
-
border-radius: var(--radius-md)
|
|
279
|
-
color: var(--foreground)
|
|
280
|
-
font-family: var(--font-mono), ui-monospace, monospace
|
|
281
|
-
padding: 10px 14px
|
|
282
|
-
gap: 6px
|
|
283
|
-
text-align: center
|
|
284
|
-
justify-content: center
|
|
276
|
+
background: var(--card);
|
|
277
|
+
border: 1px solid var(--border);
|
|
278
|
+
border-radius: var(--radius-md);
|
|
279
|
+
color: var(--foreground);
|
|
280
|
+
font-family: var(--font-mono), ui-monospace, monospace;
|
|
281
|
+
padding: 10px 14px;
|
|
282
|
+
gap: 6px;
|
|
283
|
+
text-align: center;
|
|
284
|
+
justify-content: center;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
.dark [data-sonner-toast] {
|
|
288
288
|
box-shadow:
|
|
289
289
|
0 4px 16px rgba(0, 0, 0, 0.5),
|
|
290
|
-
inset 0 0 0 1px rgba(255, 255, 255, 0.03)
|
|
290
|
+
inset 0 0 0 1px rgba(255, 255, 255, 0.03);
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
[data-sonner-toast] [data-title] {
|
|
294
|
-
color: var(--foreground)
|
|
295
|
-
font-weight: 600
|
|
296
|
-
font-size: 12px
|
|
297
|
-
line-height: 1.4
|
|
294
|
+
color: var(--foreground);
|
|
295
|
+
font-weight: 600;
|
|
296
|
+
font-size: 12px;
|
|
297
|
+
line-height: 1.4;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
[data-sonner-toast] [data-description] {
|
|
301
|
-
color: var(--muted-foreground)
|
|
302
|
-
font-size: 11px
|
|
301
|
+
color: var(--muted-foreground);
|
|
302
|
+
font-size: 11px;
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
[data-sonner-toast] [data-close-button] {
|
|
306
|
-
background: var(--muted)
|
|
307
|
-
border-color: var(--border)
|
|
308
|
-
color: var(--muted-foreground)
|
|
306
|
+
background: var(--muted);
|
|
307
|
+
border-color: var(--border);
|
|
308
|
+
color: var(--muted-foreground);
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
[data-sonner-toast] [data-close-button]:hover {
|
|
312
|
-
background: var(--accent)
|
|
313
|
-
color: var(--foreground)
|
|
312
|
+
background: var(--accent);
|
|
313
|
+
color: var(--foreground);
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
/* Success — subtle terminal-color tint */
|
|
317
317
|
.dark [data-sonner-toast][data-type="success"] {
|
|
318
|
-
background: color-mix(in srgb, var(--terminal) 6%, var(--card))
|
|
319
|
-
border-color: color-mix(in srgb, var(--terminal) 30%, transparent)
|
|
318
|
+
background: color-mix(in srgb, var(--terminal) 6%, var(--card));
|
|
319
|
+
border-color: color-mix(in srgb, var(--terminal) 30%, transparent);
|
|
320
320
|
}
|
|
321
321
|
[data-sonner-toast][data-type="success"] [data-icon] {
|
|
322
|
-
color: var(--terminal)
|
|
322
|
+
color: var(--terminal);
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
/* Error — subtle red tint */
|
|
326
326
|
.dark [data-sonner-toast][data-type="error"] {
|
|
327
|
-
background: color-mix(in srgb, var(--destructive) 6%, var(--card))
|
|
328
|
-
border-color: color-mix(in srgb, var(--destructive) 30%, transparent)
|
|
327
|
+
background: color-mix(in srgb, var(--destructive) 6%, var(--card));
|
|
328
|
+
border-color: color-mix(in srgb, var(--destructive) 30%, transparent);
|
|
329
329
|
}
|
|
330
330
|
[data-sonner-toast][data-type="error"] [data-icon] {
|
|
331
|
-
color: var(--destructive)
|
|
331
|
+
color: var(--destructive);
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
/* Warning — subtle amber tint */
|
|
335
335
|
.dark [data-sonner-toast][data-type="warning"] {
|
|
336
|
-
background: color-mix(in srgb, #f59e0b 6%, var(--card))
|
|
337
|
-
border-color: color-mix(in srgb, #f59e0b 30%, transparent)
|
|
336
|
+
background: color-mix(in srgb, #f59e0b 6%, var(--card));
|
|
337
|
+
border-color: color-mix(in srgb, #f59e0b 30%, transparent);
|
|
338
338
|
}
|
|
339
339
|
[data-sonner-toast][data-type="warning"] [data-icon] {
|
|
340
|
-
color: #f59e0b
|
|
340
|
+
color: #f59e0b;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
/* Info */
|
|
344
344
|
.dark [data-sonner-toast][data-type="info"] {
|
|
345
|
-
background: color-mix(in srgb, #3b82f6 6%, var(--card))
|
|
346
|
-
border-color: color-mix(in srgb, #3b82f6 30%, transparent)
|
|
345
|
+
background: color-mix(in srgb, #3b82f6 6%, var(--card));
|
|
346
|
+
border-color: color-mix(in srgb, #3b82f6 30%, transparent);
|
|
347
347
|
}
|
|
348
348
|
[data-sonner-toast][data-type="info"] [data-icon] {
|
|
349
|
-
color: #3b82f6
|
|
349
|
+
color: #3b82f6;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
/* Loading — faint terminal pulse */
|
|
353
353
|
.dark [data-sonner-toast][data-type="loading"] {
|
|
354
|
-
border-color: color-mix(in srgb, var(--terminal) 20%, transparent)
|
|
354
|
+
border-color: color-mix(in srgb, var(--terminal) 20%, transparent);
|
|
355
355
|
}
|
|
356
356
|
[data-sonner-toast][data-type="loading"] [data-icon] {
|
|
357
|
-
color: var(--muted-foreground)
|
|
357
|
+
color: var(--muted-foreground);
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
/* Action & cancel buttons inside toasts */
|
|
361
361
|
[data-sonner-toast] button[data-button] {
|
|
362
|
-
background: var(--primary)
|
|
363
|
-
color: var(--primary-foreground)
|
|
364
|
-
border-radius: var(--radius-sm)
|
|
365
|
-
font-size: 12px
|
|
366
|
-
font-weight: 600
|
|
362
|
+
background: var(--primary);
|
|
363
|
+
color: var(--primary-foreground);
|
|
364
|
+
border-radius: var(--radius-sm);
|
|
365
|
+
font-size: 12px;
|
|
366
|
+
font-weight: 600;
|
|
367
367
|
}
|
|
368
368
|
|
|
369
369
|
[data-sonner-toast] button[data-cancel] {
|
|
370
|
-
background: var(--muted)
|
|
371
|
-
color: var(--muted-foreground)
|
|
372
|
-
border-radius: var(--radius-sm)
|
|
373
|
-
font-size: 12px
|
|
370
|
+
background: var(--muted);
|
|
371
|
+
color: var(--muted-foreground);
|
|
372
|
+
border-radius: var(--radius-sm);
|
|
373
|
+
font-size: 12px;
|
|
374
374
|
}
|
|
@@ -20,7 +20,6 @@ import { Separator } from "@/components/ui/separator";
|
|
|
20
20
|
import { usePluginRegistry } from "@/hooks/use-plugin-registry";
|
|
21
21
|
import { createInstance } from "@/lib/api";
|
|
22
22
|
import { productName } from "@/lib/brand-config";
|
|
23
|
-
import { toUserMessage } from "@/lib/errors";
|
|
24
23
|
import { cn } from "@/lib/utils";
|
|
25
24
|
|
|
26
25
|
const PRESET_ACCENT_COLORS: Record<string, string> = {
|
|
@@ -20,7 +20,7 @@ function parseHexToRgb(hex: string): [number, number, number] {
|
|
|
20
20
|
function getTerminalColor(): [number, number, number] {
|
|
21
21
|
if (typeof document === "undefined") return [0, 255, 65];
|
|
22
22
|
const val = getComputedStyle(document.documentElement).getPropertyValue("--terminal").trim();
|
|
23
|
-
if (val
|
|
23
|
+
if (val?.startsWith("#") && val.length >= 4) return parseHexToRgb(val);
|
|
24
24
|
return [0, 255, 65];
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -117,7 +117,7 @@ export function SidebarContent({ onNavigate }: { onNavigate?: () => void }) {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
return (
|
|
120
|
-
<div className="flex h-full flex-col">
|
|
120
|
+
<div data-slot="sidebar" className="flex h-full flex-col">
|
|
121
121
|
<div className="flex h-14 items-center border-b border-sidebar-border px-6">
|
|
122
122
|
<span
|
|
123
123
|
className="text-lg font-semibold tracking-tight text-terminal"
|
|
@@ -226,7 +226,10 @@ export function SidebarContent({ onNavigate }: { onNavigate?: () => void }) {
|
|
|
226
226
|
|
|
227
227
|
export function Sidebar() {
|
|
228
228
|
return (
|
|
229
|
-
<aside
|
|
229
|
+
<aside
|
|
230
|
+
data-slot="sidebar"
|
|
231
|
+
className="flex h-screen w-64 flex-col border-r border-sidebar-border bg-sidebar text-sidebar-foreground"
|
|
232
|
+
>
|
|
230
233
|
<SidebarContent />
|
|
231
234
|
</aside>
|
|
232
235
|
);
|