// dropdown-trigger-button.tsx
import { h } from "@stencil/core";
export class DropdownItem {
    /** Controls wether the dropdown trigger is open */
    isOpen = false;
    /** Color theme of the trigger. */
    theme = "default";
    /** Visual style variant. */
    variant;
    /** Size of the trigger button. */
    size = "m";
    /** If true, trigger is disabled and not clickable. */
    disabled;
    /** If true, hides the dropdown arrow icon. */
    hideArrow = false;
    render() {
        return (h("ifx-button", { key: '76c3fdb9f750437cf92f480bf80bfde03aa8353c', variant: this.variant, theme: this.theme, size: this.size, disabled: this.disabled, class: "dropdown-trigger-button" }, h("slot", { key: '227edb4e3f70c0472e111d33a4738928dc5de591' }), !this.hideArrow && (h("ifx-icon", { key: '3a883b66870cb97c5563fa41509718ecfe8876e1', icon: "chevron-down-16", class: `icon${this.isOpen ? " rotate" : ""}` }))));
    }
    static get is() { return "ifx-dropdown-trigger-button"; }
    static get encapsulation() { return "shadow"; }
    static get originalStyleUrls() {
        return {
            "$": ["dropdown-trigger-button.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["dropdown-trigger-button.css"]
        };
    }
    static get properties() {
        return {
            "isOpen": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Controls wether the dropdown trigger is open"
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "is-open",
                "defaultValue": "false"
            },
            "theme": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "\"default\" | \"danger\" | \"inverse\"",
                    "resolved": "\"danger\" | \"default\" | \"inverse\"",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Color theme of the trigger."
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "theme",
                "defaultValue": "\"default\""
            },
            "variant": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "\"primary\"",
                    "resolved": "\"primary\"",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Visual style variant."
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "variant"
            },
            "size": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "\"s\" | \"m\"",
                    "resolved": "\"m\" | \"s\"",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Size of the trigger button."
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "size",
                "defaultValue": "\"m\""
            },
            "disabled": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "If true, trigger is disabled and not clickable."
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "disabled"
            },
            "hideArrow": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "If true, hides the dropdown arrow icon."
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "hide-arrow",
                "defaultValue": "false"
            }
        };
    }
}
