mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(search): prop types should extend input
attributes (#1523)
Fixes #1520
This commit is contained in:
parent
c0188d16bb
commit
1c4ee00142
4 changed files with 5 additions and 3 deletions
|
@ -10001,7 +10001,7 @@
|
||||||
{ "type": "dispatched", "name": "clear", "detail": "null" }
|
{ "type": "dispatched", "name": "clear", "detail": "null" }
|
||||||
],
|
],
|
||||||
"typedefs": [],
|
"typedefs": [],
|
||||||
"rest_props": { "type": "InlineComponent", "name": "SearchSkeleton" }
|
"rest_props": { "type": "Element", "name": "input" }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"moduleName": "SearchSkeleton",
|
"moduleName": "SearchSkeleton",
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
/**
|
/**
|
||||||
* @event {null} expand
|
* @event {null} expand
|
||||||
* @event {null} collapse
|
* @event {null} collapse
|
||||||
|
* @restProps {input}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<Search placeholder="Search catalog..." value="Cloud functions" />
|
<Search placeholder="Search catalog..." value="Cloud functions" />
|
||||||
|
|
||||||
<Search light />
|
<Search light name="search" dirname="search" />
|
||||||
|
|
||||||
<Search size="lg" />
|
<Search size="lg" />
|
||||||
|
|
||||||
|
|
3
types/Search/Search.svelte.d.ts
vendored
3
types/Search/Search.svelte.d.ts
vendored
|
@ -1,7 +1,8 @@
|
||||||
/// <reference types="svelte" />
|
/// <reference types="svelte" />
|
||||||
import type { SvelteComponentTyped } from "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
|
* Specify the value of the search input
|
||||||
* @default ""
|
* @default ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue