From d556b27bee5f895009db4654089dc44886c019bb Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Sun, 10 Aug 2025 17:57:54 -0300 Subject: [PATCH] feat: add new basis for money title bar components --- .../title-bar-base-money.component.css | 0 .../title-bar-base-money.component.html | 10 ++++++++ .../title-bar-base-money.component.spec.ts | 23 +++++++++++++++++++ .../title-bar-base-money.component.ts | 18 +++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.css create mode 100644 projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.html create mode 100644 projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.spec.ts create mode 100644 projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.ts diff --git a/projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.css b/projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.css new file mode 100644 index 0000000..e69de29 diff --git a/projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.html b/projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.html new file mode 100644 index 0000000..37a75fc --- /dev/null +++ b/projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.html @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.spec.ts b/projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.spec.ts new file mode 100644 index 0000000..8b42f49 --- /dev/null +++ b/projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TitleBarBaseMoneyComponent } from './title-bar-base-money.component'; + +describe('TitleBarBaseMoneyComponent', () => { + let component: TitleBarBaseMoneyComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [TitleBarBaseMoneyComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(TitleBarBaseMoneyComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.ts b/projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.ts new file mode 100644 index 0000000..fb3f885 --- /dev/null +++ b/projects/my-wallet-ds/src/lib/molecules/title-bar-base-money/title-bar-base-money.component.ts @@ -0,0 +1,18 @@ +import { Component, input } from '@angular/core'; +import { MoneyTextComponent } from './../money-text/money-text.component'; +import { TitleBarComponent } from './../../atoms/title-bar/title-bar.component'; + +@Component({ + selector: 'mw-title-bar-base-money', + standalone: true, + imports: [MoneyTextComponent, TitleBarComponent], + templateUrl: './title-bar-base-money.component.html', + styleUrl: './title-bar-base-money.component.css' +}) +export class TitleBarBaseMoneyComponent { + amount = input(0); + amountProps = input({ + lineHeight: null, + size: '1.6rem', + }); +}