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" }
],
"typedefs": [],
"rest_props": { "type": "Element", "name": "div" }
"rest_props": { "type": "Element", "name": "input" }
},
{
"moduleName": "TextInputSkeleton",
@ -8359,7 +8359,7 @@
{ "type": "forwarded", "name": "blur", "element": "input" }
],
"typedefs": [],
"rest_props": { "type": "Element", "name": "div" }
"rest_props": { "type": "Element", "name": "input" }
},
{
"moduleName": "Tile",

View file

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

View file

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

View file

@ -1,6 +1,6 @@
/// <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
*/

View file

@ -1,6 +1,6 @@
/// <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
*/