@zhangt58/svelte-vtable 0.0.3 → 0.0.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhangt58/svelte-vtable",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "A Svelte 5 library for virtualized data tables with sorting, selection, and pagination controls.",
5
5
  "type": "module",
6
6
  "svelte": "./src/lib/index.js",
@@ -42,7 +42,6 @@
42
42
  "homepage": "https://github.com/zhangt58/svelte-vtable#readme",
43
43
  "peerDependencies": {
44
44
  "flowbite-svelte": "^1.0.0",
45
- "flowbite-svelte-icons": "^3.0.0",
46
45
  "svelte": "^5.0.0",
47
46
  "svelte-virtuallists": "^1.0.0",
48
47
  "tailwindcss": "^4.0.0"
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { Pagination, Search, Badge } from 'flowbite-svelte';
3
- import { ChevronLeftOutline, ChevronRightOutline } from 'flowbite-svelte-icons';
3
+ // Inline SVGs are used instead of importing icons to avoid the dependency on flowbite-svelte-icons
4
4
  import { onMount, onDestroy } from 'svelte';
5
5
 
6
6
  // Props for search, pagination (but no per-page control)
@@ -134,7 +134,8 @@
134
134
  }
135
135
 
136
136
  // Now map pageLis to pageList entries in order
137
- pageLis.forEach(({ li, btn, text }, idx) => {
137
+ pageLis.forEach((p, idx) => {
138
+ const { li, btn, text } = p;
138
139
  const pageObj = pageList[idx];
139
140
  if (!pageObj) return;
140
141
  // clear previous decorations
@@ -286,12 +287,18 @@
286
287
  >
287
288
  {#snippet prevContent()}
288
289
  <span class="sr-only">Previous</span>
289
- <ChevronLeftOutline class="shrink-0 h-6 w-6" />
290
+ <!-- Left chevron SVG (replaces ChevronLeftOutline) -->
291
+ <svg class="shrink-0 h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
292
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1" d="M15 19l-7-7 7-7" />
293
+ </svg>
290
294
  {/snippet}
291
295
 
292
296
  {#snippet nextContent()}
293
297
  <span class="sr-only">Next</span>
294
- <ChevronRightOutline class="shrink-0 h-6 w-6" />
298
+ <!-- Right chevron SVG (replaces ChevronRightOutline) -->
299
+ <svg class="shrink-0 h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
300
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1" d="M9 5l7 7-7 7" />
301
+ </svg>
295
302
  {/snippet}
296
303
  </Pagination>
297
304
  </div>