From cfb586f539ec04716805e29e15054b188c588c84 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Sun, 1 Feb 2026 11:55:46 +0300 Subject: [PATCH] feat(SampleList): move font list display into widget layer --- src/widgets/SampleList/index.ts | 1 + .../ui/SampleList/SampleList.svelte | 66 +++++++++++++++++++ src/widgets/SampleList/ui/index.ts | 3 + 3 files changed, 70 insertions(+) create mode 100644 src/widgets/SampleList/index.ts create mode 100644 src/widgets/SampleList/ui/SampleList/SampleList.svelte create mode 100644 src/widgets/SampleList/ui/index.ts diff --git a/src/widgets/SampleList/index.ts b/src/widgets/SampleList/index.ts new file mode 100644 index 0000000..fac592d --- /dev/null +++ b/src/widgets/SampleList/index.ts @@ -0,0 +1 @@ +export { SampleList } from './ui'; diff --git a/src/widgets/SampleList/ui/SampleList/SampleList.svelte b/src/widgets/SampleList/ui/SampleList/SampleList.svelte new file mode 100644 index 0000000..418956f --- /dev/null +++ b/src/widgets/SampleList/ui/SampleList/SampleList.svelte @@ -0,0 +1,66 @@ + + + +{#if unifiedFontStore.isFetching || unifiedFontStore.isLoading} + (Loading...) +{/if} + + + {#snippet children({ item: font, isVisible, proximity, index })} + + + + {/snippet} + diff --git a/src/widgets/SampleList/ui/index.ts b/src/widgets/SampleList/ui/index.ts new file mode 100644 index 0000000..d73a19d --- /dev/null +++ b/src/widgets/SampleList/ui/index.ts @@ -0,0 +1,3 @@ +import SampleList from './SampleList/SampleList.svelte'; + +export { SampleList };