/**
 * Copyright IBM Corp. 2026
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

import "../../globals/settings.js";
import { carbonElement } from "../../globals/decorators/carbon-element.js";
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.js";
import text_input_default from "../text-input/text-input.js";
import fluid_text_input_default$1 from "./fluid-text-input.scss.js";
import { html } from "lit";
//#region src/components/fluid-text-input/fluid-text-input.ts
/**
* Copyright IBM Corp.2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Fluid text input.
*
* @element cds-fluid-text-input
*/
let CDSFluidTextInput = class CDSFluidTextInput extends text_input_default {
	connectedCallback() {
		this.setAttribute("isFluid", "true");
		super.connectedCallback();
	}
	updated() {
		const formItem = this.shadowRoot?.querySelector(`.cds--form-item`);
		if (formItem) formItem.classList.add(`cds--text-input--fluid`);
	}
	render() {
		return html` ${super.render()} `;
	}
	static {
		this.styles = [text_input_default.styles, fluid_text_input_default$1];
	}
};
CDSFluidTextInput = __decorate([carbonElement(`cds-fluid-text-input`)], CDSFluidTextInput);
var fluid_text_input_default = CDSFluidTextInput;
//#endregion
export { fluid_text_input_default as default };

//# sourceMappingURL=fluid-text-input.js.map