import e, { useCallback as t, useState as n } from "react";
//#region ../../node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js
var r = { display: "none" };
function i(t) {
	let { id: n, value: i } = t;
	return e.createElement("div", {
		id: n,
		style: r
	}, i);
}
function a(t) {
	let { id: n, announcement: r, ariaLiveType: i = "assertive" } = t;
	return e.createElement("div", {
		id: n,
		style: {
			position: "fixed",
			top: 0,
			left: 0,
			width: 1,
			height: 1,
			margin: -1,
			border: 0,
			padding: 0,
			overflow: "hidden",
			clip: "rect(0 0 0 0)",
			clipPath: "inset(100%)",
			whiteSpace: "nowrap"
		},
		role: "status",
		"aria-live": i,
		"aria-atomic": !0
	}, r);
}
function o() {
	let [e, r] = n("");
	return {
		announce: t((e) => {
			e != null && r(e);
		}, []),
		announcement: e
	};
}
//#endregion
export { i as HiddenText, a as LiveRegion, o as useAnnouncement };

//# sourceMappingURL=accessibility.esm.js.map