File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 12
12
export let className: SvelteInputProps [' className' ] = ' '
13
13
export let onChange: SvelteInputProps [' onChange' ] = () => {}
14
14
export let onKeyUp: SvelteInputProps [' onKeyUp' ] = () => {}
15
+ export let onInput: SvelteInputProps [' onInput' ] = () => {}
15
16
16
17
const classes = classNames ([
17
18
styles .input ,
41
42
class ={classes }
42
43
on:change ={onChange }
43
44
on:keyup ={onKeyUp }
45
+ on:input ={onInput }
44
46
{...$$restProps }
45
47
/>
46
48
</ConditionalWrapper >
47
- {#if label }
49
+ {#if subText }
48
50
<div class ={styles .subtext }>
49
51
{@html subText }
50
52
</div >
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ const Input = ({
10
10
theme,
11
11
label,
12
12
subText,
13
- icon,
14
13
value,
15
14
className,
16
15
children,
Original file line number Diff line number Diff line change 68
68
69
69
svg {
70
70
@include position (absolute , l10px);
71
- @include size (20px );
71
+ @include size (18px );
72
+ @include typography (primary- 30);
72
73
}
73
74
}
74
75
Original file line number Diff line number Diff line change @@ -41,10 +41,12 @@ export type InputProps = {
41
41
export type SvelteInputProps = {
42
42
onChange ?: ( e : any ) => any
43
43
onKeyUp ?: ( e : any ) => any
44
+ onInput ?: ( e : any ) => any
44
45
} & InputProps
45
46
46
47
export type ReactInputProps = {
47
48
onChange ?: ( e : any ) => any
48
49
onKeyUp ?: ( e : any ) => any
50
+ onInput ?: ( e : any ) => any
49
51
children ?: React . ReactNode
50
52
} & InputProps
You can’t perform that action at this time.
0 commit comments