-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Input): aligned leading and trailing along with the rest of the l…
…ibrary docs(input): updated examples
- Loading branch information
Showing
6 changed files
with
31 additions
and
173 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,30 +1,17 @@ | ||
import OriginalInput from './Input.svelte'; | ||
import Label from './Label.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 = OriginalLeading as LeadingStatic; | ||
Input.Trailing = OriginalTrailing as TrailingStatic; | ||
Input.Leading.Icon = Icon; | ||
Input.Trailing.Icon = Icon; | ||
Input.Leading = Icon; | ||
Input.Trailing = Icon; | ||
|
||
export default Input; | ||
|
||
export interface InputStatic { | ||
new (...args: ConstructorParameters<typeof OriginalInput>): OriginalInput; | ||
Label: typeof Label; | ||
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; | ||
Leading: typeof Icon; | ||
Trailing: 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