@innertia-solutions/nuxt-theme-spark 0.1.75 → 0.1.76

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.
@@ -189,11 +189,12 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
189
189
  </div>
190
190
 
191
191
  <!-- Contenido: tabla + preview en flex -->
192
- <div :class="previewRow && previewEnabled ? 'flex items-stretch' : ''">
192
+ <div :class="previewEnabled ? 'flex items-stretch overflow-hidden' : ''">
193
193
 
194
194
  <!-- Tabla -->
195
195
  <div
196
- :style="previewRow && previewEnabled ? { width: currentRatio + '%', flexShrink: 0, minWidth: 0 } : {}"
196
+ class="min-w-0 transition-[width] duration-200 ease-out"
197
+ :style="previewRow && previewEnabled ? { width: currentRatio + '%', flexShrink: 0 } : {}"
197
198
  >
198
199
  <Table
199
200
  ref="tableRef"
@@ -217,21 +218,31 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
217
218
  </Table>
218
219
  </div>
219
220
 
220
- <!-- Divider + preview -->
221
- <template v-if="previewRow && previewEnabled">
222
- <!-- Resize handle -->
223
- <div
224
- class="w-1 shrink-0 cursor-col-resize bg-slate-100 dark:bg-slate-700/60 hover:bg-indigo-300 dark:hover:bg-indigo-600 transition-colors"
225
- @mousedown="startResize"
226
- />
227
- <!-- Preview -->
221
+ <!-- Divider + preview con animación slide -->
222
+ <Transition
223
+ enter-active-class="transition ease-out duration-200"
224
+ enter-from-class="opacity-0 translate-x-6"
225
+ enter-to-class="opacity-100 translate-x-0"
226
+ leave-active-class="transition ease-in duration-150"
227
+ leave-from-class="opacity-100 translate-x-0"
228
+ leave-to-class="opacity-0 translate-x-6"
229
+ >
228
230
  <div
229
- class="flex flex-col overflow-y-auto border-l border-slate-200 dark:border-slate-700"
230
- :style="{ width: (100 - currentRatio) + '%', flexShrink: 0, minWidth: 0 }"
231
+ v-if="previewRow && previewEnabled"
232
+ class="flex items-stretch shrink-0 min-w-0"
233
+ :style="{ width: (100 - currentRatio) + '%' }"
231
234
  >
232
- <slot name="preview" :row="previewRow" :close="closePreview" />
235
+ <!-- Resize handle -->
236
+ <div
237
+ class="w-1 shrink-0 cursor-col-resize bg-slate-100 dark:bg-slate-700/60 hover:bg-indigo-300 dark:hover:bg-indigo-600 transition-colors"
238
+ @mousedown="startResize"
239
+ />
240
+ <!-- Preview -->
241
+ <div class="flex flex-col overflow-y-auto border-l border-slate-200 dark:border-slate-700 flex-1">
242
+ <slot name="preview" :row="previewRow" :close="closePreview" />
243
+ </div>
233
244
  </div>
234
- </template>
245
+ </Transition>
235
246
 
236
247
  </div>
237
248
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/nuxt-theme-spark",
3
- "version": "0.1.75",
3
+ "version": "0.1.76",
4
4
  "description": "Innertia Solutions — Spark theme: backoffice, landing and mobile components and layouts",
5
5
  "keywords": [
6
6
  "nuxt",