refactor: update prefix
This commit is contained in:
@@ -3,7 +3,7 @@ import { TypographyVariants } from '../../types/TypographyVariants';
|
||||
import { NgTemplateOutlet } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'my-wallet-typography',
|
||||
selector: 'mw-typography',
|
||||
standalone: true,
|
||||
imports: [NgTemplateOutlet],
|
||||
templateUrl: './typography.component.html',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<my-wallet-typography
|
||||
<mw-typography
|
||||
[color]="color()"
|
||||
[size]="size()"
|
||||
[variant]="typographyVariant"
|
||||
>{{amount()|currency:currencyCode():'symbol-narrow'}}</my-wallet-typography>
|
||||
>{{amount()|currency:currencyCode():'symbol-narrow'}}</mw-typography>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<mw-title-bar-base-money [amount]="amount()" [amountProps]="amountProps()">
|
||||
<my-wallet-typography
|
||||
<mw-typography
|
||||
[ellipsis]="true"
|
||||
maxWidth="19rem"
|
||||
color="var(--mw-gray-500)"
|
||||
[letterSpacing]="categoryProps().letterSpacing"
|
||||
[lineHeight]="categoryProps().lineHeight"
|
||||
[size]="categoryProps().size"
|
||||
>{{category()}}</my-wallet-typography>
|
||||
>{{category()}}</mw-typography>
|
||||
</mw-title-bar-base-money>
|
||||
@@ -75,7 +75,7 @@ export default {
|
||||
const Template = (args: {variant: TypographyVariants, ellipsis: boolean, letterSpacing: string, lineHeight: null|string, size: string, color: string, maxWidth: null|string}) => ({
|
||||
props: args,
|
||||
template: `
|
||||
<my-wallet-typography
|
||||
<mw-typography
|
||||
[variant]="${args.variant}"
|
||||
[ellipsis]="${args.ellipsis}"
|
||||
color="${args.color}"
|
||||
@@ -83,7 +83,7 @@ const Template = (args: {variant: TypographyVariants, ellipsis: boolean, letterS
|
||||
lineHeight="${args.lineHeight}"
|
||||
maxWidth="${args.maxWidth}"
|
||||
size="${args.size}"
|
||||
>Texto</my-wallet-typography>`,
|
||||
>Texto</mw-typography>`,
|
||||
});
|
||||
|
||||
export const Paragraph = Template.bind({});
|
||||
|
||||
Reference in New Issue
Block a user