From 005f07c89b907cd8522a679d51c5285967160be5 Mon Sep 17 00:00:00 2001 From: Ignatius Bagus Date: Tue, 11 Jun 2024 18:34:51 +0700 Subject: [PATCH] chore: remove `` (#147) --- src/lib/core/Pagination.svelte | 121 --------------------------------- src/lib/core/index.ts | 1 - 2 files changed, 122 deletions(-) delete mode 100644 src/lib/core/Pagination.svelte diff --git a/src/lib/core/Pagination.svelte b/src/lib/core/Pagination.svelte deleted file mode 100644 index 0a2dc8c..0000000 --- a/src/lib/core/Pagination.svelte +++ /dev/null @@ -1,121 +0,0 @@ - - -{#snippet fallback(side)} - {@const disabled = side === 'left' ? page === 0 : page === limit} - - -{/snippet} - -
- {#if left}{@render left()}{:else}{@render fallback('left')}{/if} - -
- {#if children} - {@render children({ limit, page, jump })} - {:else} -
{curr} - {next} / {total}
- {/if} -
- - {#if right}{@render right()}{:else}{@render fallback('right')}{/if} -
- - diff --git a/src/lib/core/index.ts b/src/lib/core/index.ts index 20bba0f..0c03950 100644 --- a/src/lib/core/index.ts +++ b/src/lib/core/index.ts @@ -3,7 +3,6 @@ export { default as Image } from './Image.svelte'; export { default as LazyLoad } from './LazyLoad.svelte'; export { default as Observe } from './Observe.svelte'; export { default as Overlay } from './Overlay.svelte'; -export { default as Pagination } from './Pagination.svelte'; export { default as Periodical } from './Periodical.svelte'; export { default as ScrollTop } from './ScrollTop.svelte'; export { default as SearchBar } from './SearchBar.svelte';