import { NgClass } from '@angular/common';
import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';
import * as i0 from "@angular/core";
export class EditorToolbarButtonComponent {
    icon = input.required();
    label = input.required();
    active = input(false);
    disabled = input(false);
    clicked = output();
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorToolbarButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.14", type: EditorToolbarButtonComponent, isStandalone: true, selector: "s-editor-toolbar-button", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked" }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: "<button\n    type=\"button\"\n    class=\"inline-flex items-center justify-center w-7 h-7 p-0 border-0 bg-transparent rounded cursor-pointer text-base leading-none transition-colors duration-150 disabled:opacity-[.35] disabled:cursor-not-allowed\"\n    [ngClass]=\"{\n        'bg-[#ebebfa]': active(),\n        'text-[#5c5ce6]': active(),\n        'hover:bg-[#ddddf7]': active(),\n        'text-[#3d3d4d]': !active(),\n        'enabled:hover:bg-[#e8e8f0]': !active(),\n        'enabled:hover:text-[#1e1e2e]': !active()\n    }\"\n    [disabled]=\"disabled()\"\n    [title]=\"label()\"\n    [attr.aria-label]=\"label()\"\n    [attr.aria-pressed]=\"active()\"\n    (click)=\"clicked.emit()\"\n>\n    <i [class]=\"icon()\"></i>\n</button>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorToolbarButtonComponent, decorators: [{
            type: Component,
            args: [{ selector: 's-editor-toolbar-button', standalone: true, imports: [NgClass], host: { style: 'display: contents' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n    type=\"button\"\n    class=\"inline-flex items-center justify-center w-7 h-7 p-0 border-0 bg-transparent rounded cursor-pointer text-base leading-none transition-colors duration-150 disabled:opacity-[.35] disabled:cursor-not-allowed\"\n    [ngClass]=\"{\n        'bg-[#ebebfa]': active(),\n        'text-[#5c5ce6]': active(),\n        'hover:bg-[#ddddf7]': active(),\n        'text-[#3d3d4d]': !active(),\n        'enabled:hover:bg-[#e8e8f0]': !active(),\n        'enabled:hover:text-[#1e1e2e]': !active()\n    }\"\n    [disabled]=\"disabled()\"\n    [title]=\"label()\"\n    [attr.aria-label]=\"label()\"\n    [attr.aria-pressed]=\"active()\"\n    (click)=\"clicked.emit()\"\n>\n    <i [class]=\"icon()\"></i>\n</button>\n" }]
        }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLXRvb2xiYXItYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItY29tcG9uZW50cy9lZGl0b3Ivc3JjL2xpYi9lZGl0b3IvdG9vbGJhci1idXR0b24vZWRpdG9yLXRvb2xiYXItYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItY29tcG9uZW50cy9lZGl0b3Ivc3JjL2xpYi9lZGl0b3IvdG9vbGJhci1idXR0b24vZWRpdG9yLXRvb2xiYXItYnV0dG9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBT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