move restProps from wrapper to input for TextInput and PasswordInput (#481)

* move restProps to input for TextInput and PasswordInput

* move restProps one line above
This commit is contained in:
Daniel Miedzik 2021-01-08 23:51:10 +01:00 committed by GitHub
commit a2287658dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
@ -124,6 +123,7 @@
class:bx--password-input="{true}" class:bx--password-input="{true}"
class:bx--text-input--light="{light}" class:bx--text-input--light="{light}"
class:bx--text-input--invalid="{invalid}" class:bx--text-input--invalid="{invalid}"
{...$$restProps}
class="{size && `bx--text-input--${size}`}" class="{size && `bx--text-input--${size}`}"
on:change on:change
on:input on:input

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
@ -155,6 +154,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:bx--text-input--warn="{warn}" class:bx--text-input--warn="{warn}"
{...$$restProps}
class="{size && `bx--text-input--${size}`}" class="{size && `bx--text-input--${size}`}"
on:change on:change
on:input on:input

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
*/ */