import { t as e } from "../../utils-C_mWfcFX.js";
//#region src/primitives/spinner/index.ts
var t = class {
	el;
	currentSize;
	constructor(t) {
		this.currentSize = t.size ?? "md", this.el = document.createElement("span"), this.el.className = `cmm-spinner cmm-spinner--${this.currentSize}`, this.el.setAttribute("role", "status"), t.className && this.el.classList.add(t.className);
		let n = document.createElement("span");
		n.className = "cmm-spinner__circle", n.setAttribute("aria-hidden", "true"), this.el.appendChild(n);
		let r = document.createElement("span");
		r.className = "sr-only", r.textContent = "Loading...", this.el.appendChild(r), t.container !== void 0 && e(t.container).appendChild(this.el);
	}
	setSize(e) {
		this.el.classList.remove(`cmm-spinner--${this.currentSize}`), this.currentSize = e, this.el.classList.add(`cmm-spinner--${this.currentSize}`);
	}
	destroy() {
		this.el.remove();
	}
};
//#endregion
export { t as Spinner };

//# sourceMappingURL=index.js.map