-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Input): removed dependency on material icons
docs(input): updated examples
- Loading branch information
Showing
5 changed files
with
109 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,6 @@ | |
use:forwardEvents | ||
{...exclude($$props, ['use', 'class'])} | ||
> | ||
<slot name="icon" /> | ||
<slot /> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,6 @@ | |
use:forwardEvents | ||
{...exclude($$props, ['use', 'class'])} | ||
> | ||
<slot name="icon" /> | ||
<slot /> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
import OriginalInput from './Input.svelte'; | ||
import Label from './Label.svelte'; | ||
import Leading from './Leading.svelte'; | ||
import Trailing from './Trailing.svelte'; | ||
import OriginalLeading from './Leading.svelte'; | ||
import OriginalTrailing from './Trailing.svelte'; | ||
import Icon from '../icon/Icon.svelte'; | ||
|
||
const Input = OriginalInput as InputStatic; | ||
Input.Label = Label; | ||
Input.Leading = Leading; | ||
Input.Trailing = Trailing; | ||
Input.Leading = OriginalLeading as LeadingStatic; | ||
Input.Trailing = OriginalTrailing as TrailingStatic; | ||
Input.Leading.Icon = Icon; | ||
Input.Trailing.Icon = Icon; | ||
|
||
export default Input; | ||
|
||
export interface InputStatic { | ||
new (...args: ConstructorParameters<typeof OriginalInput>): OriginalInput; | ||
Label: typeof Label; | ||
Leading: typeof Leading; | ||
Trailing: typeof Trailing; | ||
Leading: LeadingStatic; | ||
Trailing: TrailingStatic; | ||
} | ||
|
||
export interface LeadingStatic { | ||
new (...args: ConstructorParameters<typeof OriginalLeading>): OriginalLeading; | ||
Icon: typeof Icon; | ||
} | ||
export interface TrailingStatic { | ||
new (...args: ConstructorParameters<typeof OriginalTrailing>): OriginalTrailing; | ||
Icon: typeof Icon; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters