move restProps to input for TextInput and PasswordInput

This commit is contained in:
miedzikd 2021-01-08 10:12:34 +01:00
commit 433b73b9c4
5 changed files with 6 additions and 6 deletions

View file

@ -8138,7 +8138,7 @@
{ "type": "forwarded", "name": "blur", "element": "input" } { "type": "forwarded", "name": "blur", "element": "input" }
], ],
"typedefs": [], "typedefs": [],
"rest_props": { "type": "Element", "name": "div" } "rest_props": { "type": "Element", "name": "input" }
}, },
{ {
"moduleName": "TextInputSkeleton", "moduleName": "TextInputSkeleton",
@ -8359,7 +8359,7 @@
{ "type": "forwarded", "name": "blur", "element": "input" } { "type": "forwarded", "name": "blur", "element": "input" }
], ],
"typedefs": [], "typedefs": [],
"rest_props": { "type": "Element", "name": "div" } "rest_props": { "type": "Element", "name": "input" }
}, },
{ {
"moduleName": "Tile", "moduleName": "Tile",

View file

@ -86,7 +86,6 @@
class:bx--form-item="{true}" class:bx--form-item="{true}"
class:bx--text-input-wrapper="{true}" class:bx--text-input-wrapper="{true}"
class:bx--password-input-wrapper="{!isFluid}" class:bx--password-input-wrapper="{!isFluid}"
{...$$restProps}
on:click on:click
on:mouseover on:mouseover
on:mouseenter on:mouseenter
@ -125,6 +124,7 @@
class:bx--text-input--light="{light}" class:bx--text-input--light="{light}"
class:bx--text-input--invalid="{invalid}" class:bx--text-input--invalid="{invalid}"
class="{size && `bx--text-input--${size}`}" class="{size && `bx--text-input--${size}`}"
{...$$restProps}
on:change on:change
on:input on:input
on:input="{({ target }) => { on:input="{({ target }) => {

View file

@ -77,7 +77,6 @@
class:bx--form-item="{true}" class:bx--form-item="{true}"
class:bx--text-input-wrapper="{true}" class:bx--text-input-wrapper="{true}"
class:bx--text-input-wrapper--inline="{inline}" class:bx--text-input-wrapper--inline="{inline}"
{...$$restProps}
on:click on:click
on:mouseover on:mouseover
on:mouseenter on:mouseenter
@ -156,6 +155,7 @@
class:bx--text-input--invalid="{invalid}" class:bx--text-input--invalid="{invalid}"
class:bx--text-input--warn="{warn}" class:bx--text-input--warn="{warn}"
class="{size && `bx--text-input--${size}`}" class="{size && `bx--text-input--${size}`}"
{...$$restProps}
on:change on:change
on:input on:input
on:input="{({ target }) => { on:input="{({ target }) => {

View file

@ -1,6 +1,6 @@
/// <reference types="svelte" /> /// <reference types="svelte" />
export interface PasswordInputProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> { export interface PasswordInputProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["input"]> {
/** /**
* Set the size of the input * Set the size of the input
*/ */

View file

@ -1,6 +1,6 @@
/// <reference types="svelte" /> /// <reference types="svelte" />
export interface TextInputProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> { export interface TextInputProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["input"]> {
/** /**
* Set the size of the input * Set the size of the input
*/ */