/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
"use client";
import { cx, getStyles } from "../../../styles/styler.js";
//#region src/components/client/Select/selectFieldStyles.ts
function getSelectRootClassName({ size, hasValue, disabled, className }) {
	return getStyles({
		inputSizeRoot: size,
		inputVariantRoot: "default",
		inputVariantValueRoot: !hasValue ? "empty" : "filled",
		className: cx([className, disabled ? "opacity-50" : ""])
	});
}
function getSelectLabelClassName(size, hasValue) {
	return cx(getStyles({
		inputSizeLabel: size,
		inputVariantLabel: "default",
		inputVariantValueLabel: !hasValue ? "empty" : "filled"
	}));
}
function getSelectLabelRequiredClassName(hasValue) {
	return getStyles({
		inputVariantLabelRequired: "default",
		inputVariantValueLabelRequired: !hasValue ? "empty" : "filled"
	});
}
/** Marks Select field triggers so Input `focus-within` wrapper rules skip them. */
const SELECT_FIELD_TRIGGER_CLASS = "uds-select-field-trigger";
function getSelectTriggerWrapperClassName(size, hasValue, className) {
	return cx(getStyles({
		inputSizeInputWrapperStatic: size,
		inputSizeInputWrapperDynamic: size,
		inputVariantInputWrapper: "default",
		inputVariantValueInputWrapper: !hasValue ? "empty" : "filled"
	}), "flex", "w-full", "items-center", "min-w-[200px]", "uds-ring-shadow", "uds-ring-within", SELECT_FIELD_TRIGGER_CLASS, className);
}
function getSelectTriggerClassName({ size, hasValue, disabled, className }) {
	return getStyles({
		inputSizeInput: size,
		inputVariantInput: "default",
		inputVariantValueInput: !hasValue ? "empty" : "filled",
		inputVariantInputPlaceholder: "default",
		inputVariantValueInputPlaceholder: !hasValue ? "empty" : "filled",
		className: cx("grow", "bg-transparent", "bg-clip-text", "text-left", "focus-visible:outline-none", disabled ? "cursor-not-allowed" : "cursor-pointer", !hasValue && "text-muted", className)
	});
}
function getSelectStartIconClassName(size, hasValue) {
	return getStyles({
		inputSizeStartIcon: size,
		inputVariantStartIcon: "default",
		inputVariantValueStartIcon: !hasValue ? "empty" : "filled"
	});
}
function getSelectEndIconClassName(size, hasValue) {
	return getStyles({
		inputSizeEndIcon: size,
		inputVariantEndIcon: "default",
		inputVariantValueEndIcon: !hasValue ? "empty" : "filled"
	});
}
function getSelectHelpTextClassName(size, hasValue) {
	return cx(getStyles({
		inputSizeHelperText: size,
		inputVariantHelperText: "default",
		inputVariantValueHelperText: !hasValue ? "empty" : "filled"
	}));
}
function getSelectHelperIconClassName(size, hasValue) {
	return getStyles({
		inputSizeHelperIcon: size,
		inputVariantHelperIcon: "default",
		inputVariantValueHelperIcon: !hasValue ? "empty" : "filled"
	});
}
//#endregion
export { SELECT_FIELD_TRIGGER_CLASS, getSelectEndIconClassName, getSelectHelpTextClassName, getSelectHelperIconClassName, getSelectLabelClassName, getSelectLabelRequiredClassName, getSelectRootClassName, getSelectStartIconClassName, getSelectTriggerClassName, getSelectTriggerWrapperClassName };
