1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

[CL-135] Migrate component library to standalone components (#12389)

* Migrate component library to standalone components

* Fix tests
This commit is contained in:
Oscar Hinton
2024-12-17 23:29:48 +01:00
committed by GitHub
parent ac13cf7ce6
commit 5a582dfc6f
101 changed files with 330 additions and 216 deletions

View File

@@ -1,3 +1,4 @@
import { CommonModule } from "@angular/common";
import { Component, Input } from "@angular/core";
type SizeTypes = "small" | "default" | "large";
@@ -19,6 +20,8 @@ const BackgroundClasses: Record<BackgroundTypes, string[]> = {
@Component({
selector: "bit-progress",
templateUrl: "./progress.component.html",
standalone: true,
imports: [CommonModule],
})
export class ProgressComponent {
@Input() barWidth = 0;

View File

@@ -1,11 +1,9 @@
import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { ProgressComponent } from "./progress.component";
@NgModule({
imports: [CommonModule],
imports: [ProgressComponent],
exports: [ProgressComponent],
declarations: [ProgressComponent],
})
export class ProgressModule {}