-
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(InputNumber): aligned leading and trailing to the rest of the lib…
…rary docs(input-number): updated examples
- Loading branch information
Showing
6 changed files
with
22 additions
and
148 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 OriginalInputNumber from './InputNumber.svelte'; | ||
import Label from './Label.svelte'; | ||
import OriginalLeading from './Leading.svelte'; | ||
import OriginalTrailing from './Trailing.svelte'; | ||
import Icon from '../icon/Icon.svelte'; | ||
|
||
const InputNumber = OriginalInputNumber as InputNumberStatic; | ||
InputNumber.Label = Label; | ||
InputNumber.Leading = OriginalLeading as LeadingStatic; | ||
InputNumber.Trailing = OriginalTrailing as TrailingStatic; | ||
InputNumber.Leading.Icon = Icon; | ||
InputNumber.Trailing.Icon = Icon; | ||
InputNumber.Leading = Icon; | ||
InputNumber.Trailing = Icon; | ||
|
||
export default InputNumber; | ||
|
||
export interface InputNumberStatic { | ||
new (...args: ConstructorParameters<typeof OriginalInputNumber>): OriginalInputNumber; | ||
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