feat: forward paste event to input/textarea elements (#1332)

* chore(deps-dev): upgrade sveld, svelte-check

* feat: forward paste event to input/textarea elements

* Run "yarn build:docs"

* test: assert paste event
This commit is contained in:
metonym 2022-06-02 18:39:49 -07:00 committed by GitHub
commit e230db8115
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 96 additions and 61 deletions

View file

@ -2,45 +2,18 @@
import { TextArea, TextAreaSkeleton } from "../types";
</script>
<TextArea labelText="App description" placeholder="Enter a description..." />
<TextArea
value=""
hideLabel
light
rows="{10}"
labelText="App description"
helperText="A rich description helps us better recommend related products and services"
placeholder="Enter a description..."
/>
<TextArea
hideLabel
labelText="App description"
placeholder="Enter a description..."
/>
<TextArea
light
labelText="App description"
placeholder="Enter a description..."
/>
<TextArea
rows="{10}"
labelText="App description"
placeholder="Enter a description..."
/>
<TextArea
invalid
invalidText="Only plain text characters are allowed"
labelText="App description"
placeholder="Enter a description..."
/>
<TextArea
disabled
labelText="App description"
placeholder="Enter a description..."
on:paste
/>
<TextAreaSkeleton />
<TextAreaSkeleton hideLabel />