@innertia-solutions/nuxt-theme-spark 0.1.123 → 0.1.125

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.
@@ -28,7 +28,7 @@ const iconColorClass = computed(() => ({
28
28
  <div class="space-y-4">
29
29
 
30
30
  <!-- Page header card -->
31
- <div v-if="title" class="sticky top-0 z-20 -mx-3 -mt-3 px-3 pt-3 pb-3 bg-background-1">
31
+ <div v-if="title" class="sticky top-0 z-20 -mx-3 -mt-3 px-3 pt-3 bg-background-1">
32
32
  <div class="flex items-center justify-between bg-card border border-card-line rounded-2xl shadow-sm px-4 py-3">
33
33
  <div class="flex items-center gap-x-4 min-w-0">
34
34
  <div v-if="iconComponent" class="shrink-0 size-10 rounded-xl flex items-center justify-center border border-current/15" :class="iconColorClass">
@@ -6,7 +6,7 @@ defineProps<{
6
6
  </script>
7
7
 
8
8
  <template>
9
- <div class="sticky top-0 z-20 -mx-3 -mt-3 px-3 pt-3 pb-3 bg-background-1">
9
+ <div class="sticky top-0 z-20 -mx-3 -mt-3 px-3 pt-3 bg-background-1">
10
10
  <div class="flex items-center justify-between bg-card border border-card-line rounded-2xl shadow-sm px-4 py-3">
11
11
  <div class="flex items-center gap-x-4">
12
12
  <slot name="icon" />
@@ -343,8 +343,13 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
343
343
  <!-- Preview -->
344
344
  <div class="flex flex-col flex-1 overflow-hidden">
345
345
 
346
- <!-- Content -->
347
- <div class="flex-1 overflow-y-auto">
346
+ <!-- Fixed header — always visible regardless of active tab -->
347
+ <div v-if="$slots['preview-header']" class="shrink-0 border-b border-card-line">
348
+ <slot name="preview-header" :row="previewRow" :close="closePreview" />
349
+ </div>
350
+
351
+ <!-- Scrollable content -->
352
+ <div class="flex-1 overflow-y-auto min-h-0">
348
353
  <slot v-if="previewTab === 'datos'" name="preview" :row="previewRow" :close="closePreview" />
349
354
  <Table.PreviewTimeline
350
355
  v-else-if="previewTab === 'bitacora' && resolvedHistoryEndpoint"
@@ -358,10 +363,10 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
358
363
  type="button"
359
364
  @click="previewTab = 'datos'"
360
365
  :class="[
361
- 'flex-1 py-2 text-xs font-semibold transition-colors border-r border-card-line',
366
+ 'flex-1 py-2.5 text-xs font-semibold transition-colors border-r border-card-line border-t-2 -mt-px',
362
367
  previewTab === 'datos'
363
- ? 'text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-900/10'
364
- : 'text-muted-foreground hover:text-foreground hover:bg-muted-hover'
368
+ ? 'border-t-card text-foreground'
369
+ : 'border-t-transparent text-muted-foreground hover:text-foreground hover:bg-muted-hover'
365
370
  ]"
366
371
  >
367
372
  Datos
@@ -371,12 +376,12 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
371
376
  @click="resolvedHistoryEndpoint && (previewTab = 'bitacora')"
372
377
  :disabled="!resolvedHistoryEndpoint"
373
378
  :class="[
374
- 'flex-1 py-2 text-xs font-semibold transition-colors',
379
+ 'flex-1 py-2.5 text-xs font-semibold transition-colors border-t-2 -mt-px',
375
380
  !resolvedHistoryEndpoint
376
- ? 'text-muted-foreground/40 cursor-not-allowed'
381
+ ? 'border-t-transparent text-muted-foreground/40 cursor-not-allowed'
377
382
  : previewTab === 'bitacora'
378
- ? 'text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-900/10'
379
- : 'text-muted-foreground hover:text-foreground hover:bg-muted-hover'
383
+ ? 'border-t-card text-foreground'
384
+ : 'border-t-transparent text-muted-foreground hover:text-foreground hover:bg-muted-hover'
380
385
  ]"
381
386
  >
382
387
  Bitácora
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/nuxt-theme-spark",
3
- "version": "0.1.123",
3
+ "version": "0.1.125",
4
4
  "description": "Innertia Solutions — Spark theme: backoffice, landing and mobile components and layouts",
5
5
  "keywords": [
6
6
  "nuxt",