import { isString } from "../utils/assertion.js";
import "../utils/index.js";
import { useStyleConfig } from "../core/theme.js";
import "../core/index.js";
import label_default from "../label/label.js";
import "../label/index.js";
import { useSelectContext } from "./context.js";
import { jsx } from "react/jsx-runtime";

//#region src/select/selectLabel.tsx
const SelectLabel = ({ disabled, id, label, labelMarkOptional, labelTooltipText }) => {
	const styles = useStyleConfig("Select", useSelectContext());
	return isString(label) ? /* @__PURE__ */ jsx(label_default, {
		"aria-disabled": disabled,
		className: "vui-input-label",
		htmlFor: id,
		markAsOptional: labelMarkOptional,
		mb: .5,
		text: label,
		tooltipText: labelTooltipText,
		...styles.label
	}) : label;
};
SelectLabel.displayName = "SelectLabel";
var selectLabel_default = SelectLabel;

//#endregion
export { selectLabel_default as default };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=selectLabel.js.map