From 66157fc9b87db01af0255c8fb008f135b3484feb Mon Sep 17 00:00:00 2001 From: IshiniAvindya Date: Tue, 26 Dec 2023 21:51:56 +0100 Subject: [PATCH 1/3] TextAreaSlot fixes #46 added start and end slots --- src/lib/components/Textarea/Textarea.svelte | 129 +++++++++++++++----- src/routes/[[slug]]/docs/Textarea.svelte | 44 +++++++ 2 files changed, 142 insertions(+), 31 deletions(-) diff --git a/src/lib/components/Textarea/Textarea.svelte b/src/lib/components/Textarea/Textarea.svelte index 4765f5f5..f82a931e 100644 --- a/src/lib/components/Textarea/Textarea.svelte +++ b/src/lib/components/Textarea/Textarea.svelte @@ -4,35 +4,63 @@ export let rows : number = 5; export let cols : number = 40; export let state : "default" | "success" | "warning" | "error" = "default"; + + let input: HTMLInputElement; - + > + + {#if $$slots.end} + + + + {/if} + \ No newline at end of file diff --git a/src/routes/[[slug]]/docs/Textarea.svelte b/src/routes/[[slug]]/docs/Textarea.svelte index 1bf8fb2b..f9d1d8d5 100644 --- a/src/routes/[[slug]]/docs/Textarea.svelte +++ b/src/routes/[[slug]]/docs/Textarea.svelte @@ -4,6 +4,8 @@ import CodeBlock from '../../../lib/components/CodeBlock/CodeBlock.svelte'; import Table from "$lib/components/Table/Table.svelte"; import TableRow from "$lib/components/Table/TableRow.svelte"; + import { IconPen } from '@hyvor/icons'; + import Loader from './../../../lib/components/Loader/Loader.svelte'; let val1 = ""; @@ -68,6 +70,31 @@ All other properties are passed through to the native {" +`} /> + + + \ No newline at end of file From 4cff4f0e8814a3be79ffc7b9900f9a47478a0974 Mon Sep 17 00:00:00 2001 From: IshiniAvindya Date: Tue, 26 Dec 2023 21:56:27 +0100 Subject: [PATCH 2/3] Update - after fixes #55 --- src/lib/components/Textarea/Textarea.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/Textarea/Textarea.svelte b/src/lib/components/Textarea/Textarea.svelte index f82a931e..23785bb1 100644 --- a/src/lib/components/Textarea/Textarea.svelte +++ b/src/lib/components/Textarea/Textarea.svelte @@ -31,7 +31,7 @@