'use strict';

var index = require('./index-pX0sBY0-.js');

const dropdownTriggerButtonCss = () => `:host{display:inline-block}.rotate{transition:transform 0.2s ease-in-out;transform:rotate(-180deg);margin-top:0em}.icon{margin-top:0em;transition:transform 0.2s ease-in-out}`;

const DropdownItem = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
    }
    /** 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 (index.h("ifx-button", { key: '76c3fdb9f750437cf92f480bf80bfde03aa8353c', variant: this.variant, theme: this.theme, size: this.size, disabled: this.disabled, class: "dropdown-trigger-button" }, index.h("slot", { key: '227edb4e3f70c0472e111d33a4738928dc5de591' }), !this.hideArrow && (index.h("ifx-icon", { key: '3a883b66870cb97c5563fa41509718ecfe8876e1', icon: "chevron-down-16", class: `icon${this.isOpen ? " rotate" : ""}` }))));
    }
};
DropdownItem.style = dropdownTriggerButtonCss();

exports.ifx_dropdown_trigger_button = DropdownItem;
