fix(search): prop types should extend input attributes (#1523)

Fixes #1520
This commit is contained in:
metonym 2022-10-13 22:04:32 -07:00 committed by GitHub
commit 1c4ee00142
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View file

@ -10001,7 +10001,7 @@
{ "type": "dispatched", "name": "clear", "detail": "null" }
],
"typedefs": [],
"rest_props": { "type": "InlineComponent", "name": "SearchSkeleton" }
"rest_props": { "type": "Element", "name": "input" }
},
{
"moduleName": "SearchSkeleton",

View file

@ -2,6 +2,7 @@
/**
* @event {null} expand
* @event {null} collapse
* @restProps {input}
*/
/**

View file

@ -6,7 +6,7 @@
<Search placeholder="Search catalog..." value="Cloud functions" />
<Search light />
<Search light name="search" dirname="search" />
<Search size="lg" />

View file

@ -1,7 +1,8 @@
/// <reference types="svelte" />
import type { SvelteComponentTyped } from "svelte";
export interface SearchProps {
export interface SearchProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["input"]> {
/**
* Specify the value of the search input
* @default ""