/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
import { getFocusRingStyles } from "../components/getFocusRingStyles.js";
import { getHitTargetStyles } from "../components/getHitTargetStyles.js";
import plugin from "tailwindcss/plugin.js";

//#region src/tailwind/plugins/a11y.ts
const a11yPlugin = plugin.withOptions(() => ({ addComponents }) => {
	addComponents(getHitTargetStyles());
	addComponents(getFocusRingStyles());
}, () => ({
	safelist: ["uds-hit-target", "uds-ring"],
	theme: { extend: {
		aria: {
			checked: "checked=\"true\"",
			disabled: "disabled=\"true\"",
			expanded: "expanded=\"true\"",
			invalid: "aria-invalid=\"true\""
		},
		data: {
			active: "active=\"true\"",
			"active-item": "active-item=\"true\"",
			autofill: "autofill=\"true\"",
			backdrop: "backdrop=\"true\"",
			enter: "enter=\"true\"",
			leave: "leave=\"true\"",
			"focus-visible": "focus-visible=\"true\""
		}
	} }
}));

//#endregion
export { a11yPlugin };
//# sourceMappingURL=a11y.js.map