-
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(Currency): aligned leading and trailing with the rest of the library
docs(currency): updated examples
- Loading branch information
Showing
6 changed files
with
30 additions
and
164 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,31 +1,17 @@ | ||
import OriginalCurrency from './Currency.svelte'; | ||
import Label from './Label.svelte'; | ||
import OriginalLeading from './Leading.svelte'; | ||
import OriginalTrailing from './Trailing.svelte'; | ||
import Icon from '../icon/Icon.svelte'; | ||
|
||
const Currency = OriginalCurrency as CurrencyStatic; | ||
Currency.Label = Label; | ||
Currency.Leading = OriginalLeading as LeadingStatic; | ||
Currency.Trailing = OriginalTrailing as TrailingStatic; | ||
Currency.Leading.Icon = Icon; | ||
Currency.Trailing.Icon = Icon; | ||
Currency.Leading = Icon; | ||
Currency.Trailing = Icon; | ||
|
||
export default Currency; | ||
|
||
export interface CurrencyStatic { | ||
new (...args: ConstructorParameters<typeof OriginalCurrency>): OriginalCurrency; | ||
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