import { NgClass } from '@angular/common'; import * as i0 from '@angular/core'; import { Component, ChangeDetectionStrategy, Input } from '@angular/core'; class ButtonComponent { constructor() { this.text = ''; this.type = 'default'; this.size = 'base'; this.variant = 'default'; } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: ButtonComponent, isStandalone: true, selector: "ct-button", inputs: { text: "text", type: "type", size: "size", variant: "variant" }, ngImport: i0, template: "\n {{ text }}\n\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ButtonComponent, decorators: [{ type: Component, args: [{ selector: 'ct-button', standalone: true, imports: [NgClass], changeDetection: ChangeDetectionStrategy.OnPush, template: "\n {{ text }}\n\n" }] }], propDecorators: { text: [{ type: Input, args: [{ required: true }] }], type: [{ type: Input }], size: [{ type: Input }], variant: [{ type: Input }] } }); class IconComponent { constructor() { this.icon = ''; this.iconClass = ''; this.fill = 'currentColor'; this.strokeWidth = 1.5; this.strokeColor = 'currentColor'; this.size = '6'; this.iconPath = ''; } ngOnInit() { this.iconPath = this.getIconPath(); this.strokeColor = this.getFormattedColor(this.strokeColor); this.fill = this.getFormattedColor(this.fill); } getFormattedColor(color) { if (color.startsWith('--')) { const rgbValue = getComputedStyle(document.documentElement).getPropertyValue(color).trim(); return `rgb(${rgbValue})`; } return color; } getIconPath() { return `./icons.svg#${this.icon}`; } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: IconComponent, isStandalone: true, selector: "ct-icon", inputs: { icon: "icon", iconClass: "iconClass", fill: "fill", strokeWidth: "strokeWidth", strokeColor: "strokeColor", size: "size" }, ngImport: i0, template: "\n \n\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: IconComponent, decorators: [{ type: Component, args: [{ selector: 'ct-icon', standalone: true, imports: [NgClass], changeDetection: ChangeDetectionStrategy.OnPush, template: "\n \n\n" }] }], propDecorators: { icon: [{ type: Input }], iconClass: [{ type: Input }], fill: [{ type: Input }], strokeWidth: [{ type: Input }], strokeColor: [{ type: Input }], size: [{ type: Input }] } }); const tailwindPreset = { theme: { extend: { darkMode: 'class', fontFamily: { primary: 'var(--font-primary)', title: 'var(--font-title)', }, colors: { primary: { DEFAULT: 'rgb(var(--primary) / )', dark: 'rgb(var(--primary-dark) / )', variation: 'rgb(var(--primary-variation) / )', 'variation-dark': 'rgb(var(--primary-variation-dark) / )', }, secondary: { DEFAULT: 'rgb(var(--secondary) / )', dark: 'rgb(var(--secondary-dark) / )', }, background: { DEFAULT: 'rgb(var(--background) / )', dark: 'rgb(var(--background-dark) / )', }, surface: { DEFAULT: 'rgb(var(--surface) / )', variation: 'rgb(var(--surface-variation) / )', dark: 'rgb(var(--surface-dark) / )', 'variation-dark': 'rgb(var(--surface-variation-dark) / )', }, accent: { DEFAULT: 'rgb(var(--accent) / )', dark: 'rgb(var(--accent-dark) / )', }, on: { primary: 'rgb(var(--on-primary) / )', 'primary-variation': 'rgb(var(--on-primary-variation) / )', secondary: 'rgb(var(--on-secondary) / )', 'secondary-variation': 'rgb(var(--on-secondary-variation) / )', accent: 'rgb(var(--on-accent) / )', background: 'rgb(var(--on-background) / )', 'background-variation': 'rgb(var(--on-background-variation) / )', surface: 'rgb(var(--on-surface) / )', 'surface-variation': 'rgb(var(--on-surface-variation) / )', 'primary-dark': 'rgb(var(--on-primary-dark) / )', 'primary-variation-dark': 'rgb(var(--on-primary-variation-dark) / )', 'secondary-dark': 'rgb(var(--on-secondary-dark) / )', 'secondary-variation-dark': 'rgb(var(--on-secondary-variation-dark) / )', 'accent-dark': 'rgb(var(--on-accent-dark) / )', 'background-dark': 'rgb(var(--on-background-dark) / )', 'background-variation-dark': 'rgb(var(--on-background-variation-dark) / )', 'surface-dark': 'rgb(var(--on-surface-dark) / )', 'surface-variation-dark': 'rgb(var(--on-surface-variation-dark) / )', }, }, }, }, }; /* * Public API Surface of circletone */ /** * Generated bundle index. Do not edit. */ export { ButtonComponent, IconComponent, tailwindPreset }; //# sourceMappingURL=circletone.mjs.map