@innertia-solutions/nuxt-theme-spark 0.1.63 → 0.1.65
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.
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
defineProps<{
|
|
3
3
|
title: string
|
|
4
4
|
description?: string
|
|
5
|
+
sticky?: boolean
|
|
5
6
|
}>()
|
|
6
7
|
</script>
|
|
7
8
|
|
|
8
9
|
<template>
|
|
10
|
+
<div :class="sticky ? 'sticky top-3 z-20' : ''">
|
|
9
11
|
<div class="flex items-center justify-between bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-2xl shadow-sm px-4 py-3">
|
|
10
12
|
<div class="flex items-center gap-x-4">
|
|
11
13
|
<slot name="icon" />
|
|
@@ -26,4 +28,5 @@ defineProps<{
|
|
|
26
28
|
<slot name="actions" />
|
|
27
29
|
</div>
|
|
28
30
|
</div>
|
|
31
|
+
</div>
|
|
29
32
|
</template>
|
package/components/Table.vue
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { useVueTable, getCoreRowModel } from '@tanstack/vue-table'
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
IconSelector,
|
|
5
|
+
IconChevronUp,
|
|
6
|
+
IconChevronDown,
|
|
7
7
|
IconReload,
|
|
8
8
|
IconBolt,
|
|
9
9
|
} from '@tabler/icons-vue'
|
|
@@ -520,9 +520,9 @@ defineExpose({
|
|
|
520
520
|
<div class="px-4 py-3 flex items-center gap-x-1 text-xs font-medium text-slate-500 dark:text-slate-400 w-full">
|
|
521
521
|
{{ header.column.columnDef.meta?.label ?? header.id }}
|
|
522
522
|
<span v-if="header.column.getCanSort()">
|
|
523
|
-
<
|
|
524
|
-
<
|
|
525
|
-
<
|
|
523
|
+
<IconSelector v-if="!header.column.getIsSorted()" class="size-4 opacity-40" />
|
|
524
|
+
<IconChevronDown v-else-if="header.column.getIsSorted() === 'desc'" class="size-4" />
|
|
525
|
+
<IconChevronUp v-else class="size-4" />
|
|
526
526
|
</span>
|
|
527
527
|
</div>
|
|
528
528
|
<!-- Resize handle -->
|