import { cnb } from "cnbuilder";
import { cssUtils } from "../cssUtils.js";
import { bem } from "../utils/bem.js";
const styles = bem("rmd-autocomplete");
/**
 * @since 6.0.0
 */ export function autocomplete(options = {}) {
    const { className, loading, inlineChips, disableClearButton, disableDropdownButton } = options;
    return cnb(styles({
        cb: !disableClearButton,
        db: !disableDropdownButton,
        cp: loading,
        "inline-chips": inlineChips
    }), className);
}
/**
 * @since 6.0.0
 */ export function autocompleteRightAddon(options = {}) {
    const { className } = options;
    return cnb(styles("right-addon"), cssUtils({
        backgroundColor: "current-color"
    }), className);
}
/**
 * @since 6.0.0
 */ export function autocompleteDropdownButton(options = {}) {
    const { className } = options;
    return cnb(styles("dropdown-button"), className);
}
/**
 * @since 6.0.0
 */ export function autocompleteClearButton(options = {}) {
    const { className, visibility = "always" } = options;
    return cnb(styles("clear-button", {
        hover: visibility === "active" || visibility === "query",
        query: visibility === "query"
    }), className);
}
/**
 * @since 6.0.0
 */ export function autocompleteChip(options = {}) {
    const { className } = options;
    return cnb(styles("chip"), className);
}

//# sourceMappingURL=autocompleteStyles.js.map