{ "version": 3, "sources": ["libs/angular/ng-ui/src/lib/heading/heading.component.ts", "libs/angular/ng-ui/src/lib/heading/heading.component.html"], "sourcesContent": ["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\ntype TextSize =\n | 'xs'\n | 'sm'\n | 'md'\n | 'lg'\n | 'xl'\n | '2xl'\n | '3xl'\n | '4xl'\n | '5xl'\n | '6xl'\n | '7xl'\n | '8xl'\n | '9xl';\n\n@Component({\n standalone: true,\n imports: [CommonModule],\n selector: 'itk-heading',\n templateUrl: './heading.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styles: [':host { @apply block; }'],\n})\nexport class ItkHeadingComponent {\n @Input() size: TextSize = 'xl';\n @Input() position: 'center' | 'left' | 'right' = 'left';\n @Input() weight: 'light' | 'medium' | 'bold' | 'semibold' | 'normal' =\n 'normal';\n\n get sizeClass(): string {\n switch (this.size) {\n case 'xs':\n return 'text-xs';\n case 'sm':\n return 'text-sm';\n case 'md':\n return 'text-md';\n case 'lg':\n return 'text-lg';\n case 'xl':\n return 'text-xl';\n case '2xl':\n return 'text-2xl';\n case '3xl':\n return 'text-3xl';\n case '4xl':\n return 'text-4xl';\n case '5xl':\n return 'text-5xl';\n case '6xl':\n return 'text-6xl';\n case '7xl':\n return 'text-7xl';\n case '8xl':\n return 'text-8xl';\n case '9xl':\n return 'text-9xl';\n }\n }\n\n get positionClass(): string {\n switch (this.position) {\n case 'left':\n return 'text-left';\n case 'center':\n return 'text-center';\n case 'right':\n return 'text-right';\n }\n }\n\n get weightClass(): string {\n switch (this.weight) {\n case 'light':\n return 'font-light';\n case 'normal':\n return 'font-normal';\n case 'medium':\n return 'font-medium';\n case 'semibold':\n return 'font-semibold';\n case 'bold':\n return 'font-bold';\n }\n }\n\n get classes(): string[] {\n return [this.sizeClass, this.positionClass, this.weightClass];\n }\n}\n", "