From f38c1edc4c6ab9241548f16bac0bebfc8f0446af Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Sun, 10 Aug 2025 22:39:20 -0300 Subject: [PATCH] feat: svg atom --- .../src/lib/atoms/svg/svg.component.html | 3 +++ .../src/lib/atoms/svg/svg.component.spec.ts | 23 +++++++++++++++++++ .../src/lib/atoms/svg/svg.component.ts | 15 ++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 projects/my-wallet-ds/src/lib/atoms/svg/svg.component.html create mode 100644 projects/my-wallet-ds/src/lib/atoms/svg/svg.component.spec.ts create mode 100644 projects/my-wallet-ds/src/lib/atoms/svg/svg.component.ts diff --git a/projects/my-wallet-ds/src/lib/atoms/svg/svg.component.html b/projects/my-wallet-ds/src/lib/atoms/svg/svg.component.html new file mode 100644 index 0000000..2cad2f6 --- /dev/null +++ b/projects/my-wallet-ds/src/lib/atoms/svg/svg.component.html @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/projects/my-wallet-ds/src/lib/atoms/svg/svg.component.spec.ts b/projects/my-wallet-ds/src/lib/atoms/svg/svg.component.spec.ts new file mode 100644 index 0000000..3f51a99 --- /dev/null +++ b/projects/my-wallet-ds/src/lib/atoms/svg/svg.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { SvgComponent } from './svg.component'; + +describe('SvgComponent', () => { + let component: SvgComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [SvgComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(SvgComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/projects/my-wallet-ds/src/lib/atoms/svg/svg.component.ts b/projects/my-wallet-ds/src/lib/atoms/svg/svg.component.ts new file mode 100644 index 0000000..4148507 --- /dev/null +++ b/projects/my-wallet-ds/src/lib/atoms/svg/svg.component.ts @@ -0,0 +1,15 @@ +import { Component, input } from '@angular/core'; + +@Component({ + selector: 'mw-svg', + standalone: true, + imports: [], + templateUrl: './svg.component.html', + styles: `` +}) +export class SvgComponent { + width = input("24px"); + height = input("24px"); + color = input("#000000"); + symbol = input(""); +}